Skip to content

Commit 6cbfd18

Browse files
committed
Merge remote-tracking branch 'upstream/master' into fix-generic-classvar
2 parents 6f8b2d2 + 4373e05 commit 6cbfd18

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mypy/checkmember.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,6 +1225,9 @@ def analyze_class_attribute_access(
12251225
is_classmethod = (is_decorated and cast(Decorator, node.node).func.is_class) or (
12261226
isinstance(node.node, SYMBOL_FUNCBASE_TYPES) and node.node.is_class
12271227
)
1228+
is_staticmethod = (is_decorated and cast(Decorator, node.node).func.is_static) or (
1229+
isinstance(node.node, SYMBOL_FUNCBASE_TYPES) and node.node.is_static
1230+
)
12281231
t = get_proper_type(t)
12291232
is_trivial_self = False
12301233
if isinstance(node.node, Decorator):

0 commit comments

Comments
 (0)