You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Sorry for my poor ASCII art skills! Feel free to edit... Basically, I mean I have foo.py in root and another foo.py in a package package.)
If in one file (not shown above) I import foo, and in another file I do import package.foo, then Pylint seems to get confused by the two files with the same base-name. The result is that calls to members of foo in one file when those members don't exist in package.foo cause spurious no-member and no-name-in-module warnings from Pylint. I haven't tried out this minimal example - my repo is much more complex - but I think it would reproduce the issue.
(My precise situation is that I have a "library" directory on my PYTHONPATH containing both a module foo and a package itself containing a module foo. The files importing these modules are outside of library and are not on the PYTHONPATH.)
The text was updated successfully, but these errors were encountered:
Sorry for taking so long to respond to this issue! I'm trying to reproduce it using your instructions, but I'm not able to do it, can you pinpoint the failure exactly and maybe give us a sample structure with some code that emits this? Include the output as well, please, since it can help us track it easily.
I have some code structured a bit like this:
(Sorry for my poor ASCII art skills! Feel free to edit... Basically, I mean I have
foo.py
in root and anotherfoo.py
in a packagepackage
.)If in one file (not shown above) I
import foo
, and in another file I doimport package.foo
, then Pylint seems to get confused by the two files with the same base-name. The result is that calls to members offoo
in one file when those members don't exist inpackage.foo
cause spuriousno-member
andno-name-in-module
warnings from Pylint. I haven't tried out this minimal example - my repo is much more complex - but I think it would reproduce the issue.(My precise situation is that I have a "library" directory on my
PYTHONPATH
containing both a modulefoo
and a package itself containing a modulefoo
. The files importing these modules are outside oflibrary
and are not on thePYTHONPATH
.)The text was updated successfully, but these errors were encountered: