Pylint unreliable when parsing property.setter code #8752
Labels
Stale
This issue is stale and will be deleted automatically if nothing happens
Waiting on author
Indicate that maintainers are waiting for a message of the author
Bug description
Unfortunately cannot give the actual code triggering this issue and unable to reproduce at this moment with a simplified example code. The following example below is pseudo code to explain, not actual working code.
Observations:
disable=too-many-instance-attributes
will then result in reporting ofuseless-supression
, but again not with every invocation of pylint.visit_classdef()
and addingprint(node.instance_attrs)
you can see it included the "my_var" in the list of instance_attrs when pylint reports too-many-instance-attributes. It should not have included "my_var" in the list of node.instance_attrs.In the actual code base that triggers this issue, all three code parts (two classes and instances of these classes) are in different python files.
Configuration
No response
Command used
Pylint output
Expected behavior
No issue expected.
Pylint version
OS / Environment
Ubuntu 22.04
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: