-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pylint files gets imported when a file has the same name as one of pylint's files #2258
Comments
|
@brycepg I expected the |
That is, I'd expect the same error from both of these:
Where |
Oh my bad, you're right. This also applies to explicit packages |
So the super silly bug is that if your file is named
I bet the same happens for all the files in the pylint directory. |
I'm experiencing what I think is a similar issue, tested with Repro SetupGiven the following setup,
|
I can't reproduce this (the example in the description or this example from the comments). pylint 2.16.0-dev
astroid 2.12.12
Python 3.10.4 |
An erroneous error occurs when a file is named "config.py".
Steps to reproduce
pylint --errors-only pylint-experiment/
Current behavior
Expected behavior
I expect to see:
This is what happens if I rename
config
tobar
and changeimport config
toimport bar
.pylint --version output
The text was updated successfully, but these errors were encountered: