Skip to content
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

Name collision with deprecated modules causes deprecated-module false-positive #4672

Closed
RaenonX opened this issue Jul 5, 2021 · 1 comment · Fixed by #4678
Closed

Name collision with deprecated modules causes deprecated-module false-positive #4672

RaenonX opened this issue Jul 5, 2021 · 1 comment · Fixed by #4678
Labels
Duplicate 🐫 Duplicate of an already existing issue

Comments

@RaenonX
Copy link

RaenonX commented Jul 5, 2021

Steps to reproduce

from .parser import ParserBase

There is a file called parser.py in the same directory as the file above.

Current behavior

Emits deprecated-module.

Expected behavior

Should not emit deprecated-module since it's not using the deprecated parser module.

I assume it's somehow ignoring that . before the module name.

pylint --version output

Result of pylint --version output:

pylint 2.9.3
astroid 2.6.2
Python 3.9.5 (tags/v3.9.5:0a7dcbd, May  3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)]
@Pierre-Sassoulas Pierre-Sassoulas added the Duplicate 🐫 Duplicate of an already existing issue label Jul 5, 2021
@Pierre-Sassoulas
Copy link
Member

Duplicate of #4629

@Pierre-Sassoulas Pierre-Sassoulas marked this as a duplicate of #4629 Jul 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate 🐫 Duplicate of an already existing issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants