-
-
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
False positive not callable for function call in dictionary #5113
Comments
It appears that internal pylint errors [1] such as: "internal error with sending report for module ['lib/vdsm/storage/lvm.py'] 'Name' object has no attribute 'value'" prevents Pylint from working properly and reports errors in some modules. pylint bug reported for the issue[2]. bumping up pylint version seems to overcome this error. Several true positives errors reported in the new pylint version, such as: "lib/vdsm/storage/lvm.py:1409:14: E1120: No value for argument 'rc' in constructor call (no-value-for-parameter) " Additionally, false negatives errors are also reported: "lib/vdsm/storage/volumemetadata.py:101:29: E1102: validate is not callable (not-callable)" in order to pass the build and upgrade the pylint version, the errors have been skipped. the true positive errors will be handle in the next patch. [1] https://jenkins.ovirt.org/blue/organizations/jenkins/ vdsm_standard-check-patch/detail/vdsm_standard-check-patch/29942/ pipeline/151#step-264-log-1372 [2] pylint-dev/pylint#5113 Signed-off-by: hbraha <[email protected]> Signed-off-by: Marcin Sobczyk <[email protected]> Change-Id: Idae409022d60ace91a27fc10a7130609502ed0b8
It seems that when astroid visits the tuple node Possibly this is due to recursion on this line where the
@Pierre-Sassoulas do you think this sounds like the right track? Aside from this the reported sample code works ok if it is simplified to:
In general, pylint doesn't report any issues with the following:
|
@mbyrnepr2 That certainly seems like an issue! Good job on identifying it! |
This sounds problematic indeed, good job finding this ! |
@Pierre-Sassoulas @DanielNoord thanks for looking. The following changes seem to fix it, but I'll leave as draft for now as I would like to share progress but also double-check when I have more time: |
I think we can close once #5593 is merged (functional test). |
Bug description
Configuration
No response
Command used
Pylint output
************* Module test1 test1.py:8:11: E1102: validate is not callable (not-callable)
Expected behavior
no error.
Pylint version
OS / Environment
Red Hat Enterprise Linux release 8.4
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: