Skip to content

Commit 6e8b738

Browse files
committed
fix mypy err
1 parent 0f8c2f7 commit 6e8b738

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypyc/irbuild/specialize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def apply_function_specialization(
147147
# and isinstance(callee.node, Var)
148148
# NOTE: why is this not a weakref rprimitive?
149149
# TODO: fix to weakref rprimitive so _apply_specialization can use the custom_op
150-
and is_weakref_rprimitive(builder.node_type(callee.node))
150+
and is_weakref_rprimitive(builder.node_type(callee))
151151
# and str(callee.node.type).startswith("weakref.ReferenceType")
152152
and len(expr.args) == 0
153153
):

0 commit comments

Comments
 (0)