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
False positive "unused-import" for typing python 3.7.4 #3193
Comments
Can you check if you have |
Yes typed_ast is installed on both systems in V1.4.0. |
Isn't this a duplicate of #3191, or at least the same root cause? |
Could be yes. Although it would raise the question why it's working on windows but not on linux |
@davidgiga1993 I can't reproduce this issue on my computer with
I'm not sure what the culprit might be given you already have |
I came here to report this issue that I observed in a module using from typing import Optional
import weakref
class foo:
def __init__(self, thing):
self.bar = thing # type:Optional[weakref.ref[int]]
Edit: If it would help, I may be able to provide a tarball of a virtualenv with a repro in it. |
python 3.7.4 on linux:
pylint Test.py ************* Module Test ... Test.py:1:0: W0611: Unused Optional imported from typing (unused-import) pylint --version pylint 2.4.2 astroid 2.3.1 Python 3.7.4 (default, Jul 23 2019, 10:08:33) [GCC 4.8.5]
Interestingly I don't get this issue on windows with python 3.7.3 or 3.7.4:
Any ideas what could cause this issue?
The text was updated successfully, but these errors were encountered: