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
$ cat t.py def test(coll: Collection[str]) -> None: print(len(coll)) $ pylint t.py | grep unsubscriptable t.py:3:15: E1136: Value 'Collection' is unsubscriptable (unsubscriptable-object) $ python --version Python 3.6.9
Curiously, this is not reproducible with at least 3.7.4 or 3.8.0, I see it with 3.6.x (x={1, 9}) only.
Maybe related to #3129, #2849 ?
False unsubscriptable-object positive on typing.Collection
No error
pylint 2.5.0-dev1 astroid 2.4.0 Python 3.6.9 (default, Jul 31 2019, 21:07:43) [GCC 7.4.0]
The text was updated successfully, but these errors were encountered:
Curious that this reproduces only on 3.6.X.
Sorry, something went wrong.
Dupe of #2377
Thanks @Jon-Work
No branches or pull requests
Steps to reproduce
Curiously, this is not reproducible with at least 3.7.4 or 3.8.0, I see it with 3.6.x (x={1, 9}) only.
Maybe related to #3129, #2849 ?
Current behavior
False unsubscriptable-object positive on typing.Collection
Expected behavior
No error
pylint --version output
pylint 2.5.0-dev1
astroid 2.4.0
Python 3.6.9 (default, Jul 31 2019, 21:07:43)
[GCC 7.4.0]
The text was updated successfully, but these errors were encountered: