-
-
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
False positive no-value-for-parameter
due to inference edge case
#8544
False positive no-value-for-parameter
due to inference edge case
#8544
Comments
When |
sure thing, can you point me to the right files? I'm assuming it'll go in the infer() implementation for CallSite in astroid? |
Here's where we're dealing with the first inference result only (well, one of two places in this file): https:/pylint-dev/astroid/blob/5e8c89afe4a12eeab2ab97d95495187990e5df27/astroid/arguments.py#L138 If we change this simply to |
Bug description
Due to incorrect inference, E1120 can be raised on code that is functional.
Example code:
Command used
Pylint output
Expected behavior
No issues raised.
Pylint version
OS / Environment
MacOS Ventura, 13.2.1
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: