-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
__slots__ declaration ignored in a subclass of generic collections.abc.AsyncIterator #5099
Comments
… list contains one class & it is not ``object``. Refs pylint-dev/pylint#5099
… list contains one class & it is not ``object``. Refs pylint-dev/pylint#5099
Prevent returning an empty list for `ClassDef.slots()` when the mro list contains one class & it is not `object`. Refs pylint-dev/pylint#5099 Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Prevent returning an empty list for `ClassDef.slots()` when the mro list contains one class & it is not `object`. Refs pylint-dev/pylint#5099 Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Prevent returning an empty list for `ClassDef.slots()` when the mro list contains one class & it is not `object`. Refs pylint-dev/pylint#5099 Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
This might be fixed if you upgrade astroid or on a new install, because we released astroid 2.12.13 with pylint-dev/astroid#1861 and pylint can use the latest astroid. Keeping in 2.15.7, do you think we need a regression tests @mbyrnepr2 ? |
I'm thinking no @Pierre-Sassoulas because of the test in astroid & based on the conversation around duplicating tests in Pylint which are already in astroid. |
Bug description
In Python 3.9, as part of the annotation improvements, collections.abc.AsyncIterator has replaced typing.AsyncIterator for annotations.
However, this replacement has broken down pylint for this atiterator.py file (which had no pylint issues before and has no runtime issues):
Command used
Pylint output
Expected behavior
No E0237 warning
Pylint version
OS / Environment
MacOS 11.6
conda 4.10.3
zsh 5.8 (x86_64-apple-darwin20.0)
Additional dependencies
(Available by checking the edition history)
The text was updated successfully, but these errors were encountered: