You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an attribute is only declared on class level (with type annotation), but not assigned to a value, it is currently displayed twice in pyreverse diagrams:
However it should be ignored, and only the type information should be picked up by pyreverse.
Note: if a value is assigned on class level, the attribute is a class attribute and the attributes defined in __init__ are instance attributes.
Both exist independently from one another, and the class attribute should be shown as "static attribute" with an underline.
See also the discussion in this issue.
Bug description
If an attribute is only declared on class level (with type annotation), but not assigned to a value, it is currently displayed twice in
pyreverse
diagrams:However it should be ignored, and only the type information should be picked up by
pyreverse
.Note: if a value is assigned on class level, the attribute is a class attribute and the attributes defined in
__init__
are instance attributes.Both exist independently from one another, and the class attribute should be shown as "static attribute" with an underline.
See also the discussion in this issue.
Configuration
No response
Command used
Pylint output
Expected behavior
Only show the attribute once.
Pylint version
OS / Environment
No response
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: