Skip to content

Commit

Permalink
Use better variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdrozd committed Sep 5, 2023
1 parent f11f328 commit 956413f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pylint/pyreverse/diagrams.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,15 @@ def get_attrs(self, node: nodes.ClassDef) -> list[str]:
"""Return visible attributes, possibly with class name."""
attrs = []
properties = {
n: m
for n, m in node.items()
if isinstance(m, nodes.FunctionDef) and decorated_with_property(m)
name: attr
for name, attr in node.items()
if isinstance(attr, nodes.FunctionDef) and decorated_with_property(attr)
}
for n, m in list(node.locals_type.items()) + list(
for name, attr in list(node.locals_type.items()) + list(
node.instance_attrs_type.items()
):
if n not in properties:
properties[n] = m
if name not in properties:
properties[name] = attr

for node_name, associated_nodes in properties.items():
if not self.show_attr(node_name):
Expand Down

0 comments on commit 956413f

Please sign in to comment.