We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For some common libraries the canonical way to import now causes a pylint warning
pylint issues the warning "C0414: Import alias does not rename original package (useless-import-alias)"
This should not be a warning/error
pylint 2.1.1 astroid 2.0.4 Python 3.6.5 (default, Apr 1 2018, 05:46:30) [GCC 7.3.0]
b0f6184
#2309
#2183 IMHO from os import path should be allowed to remain import os.path as path as the Google style guide does not allow from ... import ...
from os import path
import os.path as path
from ... import ...
The text was updated successfully, but these errors were encountered:
@webartifex this is fixed in 2.2 and will be available soon. #2402
Sorry, something went wrong.
consider-using-from-import
No branches or pull requests
For some common libraries the canonical way to import now causes a pylint warning
Steps to reproduce
Current behavior
pylint issues the warning "C0414: Import alias does not rename original package (useless-import-alias)"
Expected behavior
This should not be a warning/error
pylint --version output
pylint 2.1.1
astroid 2.0.4
Python 3.6.5 (default, Apr 1 2018, 05:46:30)
[GCC 7.3.0]
Bug introduction
b0f6184
Potential duplicate
#2309
Related issue
#2183
IMHO
from os import path
should be allowed to remainimport os.path as path
as the Google style guide does not allowfrom ... import ...
The text was updated successfully, but these errors were encountered: