File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -122,15 +122,15 @@ def get_attrs(self, node: nodes.ClassDef) -> list[str]:
122122 """Return visible attributes, possibly with class name."""
123123 attrs = []
124124 properties = {
125- n : m
126- for n , m in node .items ()
127- if isinstance (m , nodes .FunctionDef ) and decorated_with_property (m )
125+ name : attr
126+ for name , attr in node .items ()
127+ if isinstance (attr , nodes .FunctionDef ) and decorated_with_property (attr )
128128 }
129- for n , m in list (node .locals_type .items ()) + list (
129+ for name , attr in list (node .locals_type .items ()) + list (
130130 node .instance_attrs_type .items ()
131131 ):
132- if n not in properties :
133- properties [n ] = m
132+ if name not in properties :
133+ properties [name ] = attr
134134
135135 for node_name , associated_nodes in properties .items ():
136136 if not self .show_attr (node_name ):
You can’t perform that action at this time.
0 commit comments