-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Incorrect type detected when @contextmanager uses a subgenerator #9252
Comments
With the latest version (
|
Thank you for update @PascalHonegger. I think you should disable the message locally with |
The problem there is that you need to disable it at every call site, also isn't ideal 😞 |
https://pylint.readthedocs.io/en/stable/user_guide/messages/error/no-member.html |
This didn't help with Pylint E1101, though; see pylint-dev/pylint#9252
This didn't help with Pylint E1101, though; see pylint-dev/pylint#9252
This didn't help with Pylint E1101, though; see pylint-dev/pylint#9252
Bug description
The following raises a
E1101: Generator 'generator' has no 'bit_count' member (no-member)
:Configuration
No response
Command used
Pylint output
Expected behavior
Same as commented code path : Pylint should detect that the context type is
int
and notGenerator
and hence it should not raiseno-member
Pylint version
OS / Environment
No response
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: