Skip to content

Commit 3f71d6f

Browse files
committed
Restore is_staticmethod
1 parent 2ba79cb commit 3f71d6f

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
@@ -1221,6 +1221,9 @@ def analyze_class_attribute_access(
12211221
is_classmethod = (is_decorated and cast(Decorator, node.node).func.is_class) or (
12221222
isinstance(node.node, SYMBOL_FUNCBASE_TYPES) and node.node.is_class
12231223
)
1224+
is_staticmethod = (is_decorated and cast(Decorator, node.node).func.is_static) or (
1225+
isinstance(node.node, SYMBOL_FUNCBASE_TYPES) and node.node.is_static
1226+
)
12241227
t = get_proper_type(t)
12251228
is_trivial_self = False
12261229
if isinstance(node.node, Decorator):

0 commit comments

Comments
 (0)