Skip to content

Commit 4442e4a

Browse files
committed
Fix typing
1 parent 380e2ba commit 4442e4a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mypy/checkmember.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,9 @@ def analyze_class_attribute_access(
12071207
t, isuper, is_classmethod, is_staticmethod, mx.self_type, original_vars=original_vars
12081208
)
12091209
if is_decorated and not is_staticmethod:
1210-
t = expand_self_type_if_needed(t, mx, node.node.var, itype, is_class=is_classmethod)
1210+
t = expand_self_type_if_needed(
1211+
t, mx, cast(Decorator, node.node).var, itype, is_class=is_classmethod
1212+
)
12111213

12121214
result = t
12131215
# __set__ is not called on class objects.

0 commit comments

Comments
 (0)