-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fales positive: unnecessary-dunder-call (__aiter__, __anext__) #7529
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
Comments
@jpy-git Do you happen to know anything about this? Or would you want to take a look at this? |
NEEDS_PYTHON_3_10 = {'__aiter__', '__anext__'} (If there is no time to do this for the next release, at least disable these entries in |
This is an easy fix. Would you want to open a PR for this? You've done all the work already!
I'm not sure I understand this. If you're using |
No-- this is the misunderstanding of this checker. |
some reasons to consider dropping
As for fixing (rather than removing), I could contribute the change, but it's probably 1-2 hrs for me to work out, including proper tests-- not sure when I can get to it. |
I'll work on a fix today which uses |
Bug description
As of recent pylint versions, I'm seeing the errors below, even though it's suggesting the wrong builtin (
iter()
rather thanaiter()
), and even though I'm on Python 3.8 (which doesn't haveaiter()
andanext()
builtins).Configuration
No response
Command used
Pylint output
Expected behavior
no errors
Pylint version
OS / Environment
No response
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: