-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
I'm creating *.pyi stubs for large libraries and I'd like to use pylint (as well as mypy) to make sure the stubs are clean.
The files I'm trying to lint are located in a directory hierarchy having __init__.pyi file in each subdirectory. Unfortunately, pylint only detects __init__.py as a "submodule root" and treats __init__.pyi as a regular file, not a submodule root, so it can't properly recognized objects defined in them.
I would suggest the following behaviour:
-
If import of an object from a module is located in a
.pyfile, the source code for that object should be looked up in a corresponding__init__.pyfile, as it is now. -
If import of an object from a module is located in a
.pyifile, the source code for that object should be looked up in a corresponding__init__.pyifile, not__init__.pyfile, as it is does now.