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

useless-import-alias is too strict #2423

Closed
webartifex opened this issue Aug 18, 2018 · 1 comment
Closed

useless-import-alias is too strict #2423

webartifex opened this issue Aug 18, 2018 · 1 comment

Comments

@webartifex
Copy link

webartifex commented Aug 18, 2018

For some common libraries the canonical way to import now causes a pylint warning

Steps to reproduce

  1. pip install rpy2
  2. import rpy2.robjects as robjects
  3. or, import rpy2.rinterface as rinterface

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 remain import os.path as path as the Google style guide does not allow from ... import ...

@sushobhit27
Copy link
Contributor

@webartifex this is fixed in 2.2 and will be available soon.
#2402

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants