We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa595d2 commit 292e849Copy full SHA for 292e849
mypyc/irbuild/prepare.py
@@ -280,9 +280,9 @@ def prepare_class_def(
280
if attrs.get("serializable") is True:
281
# Supports copy.copy and pickle (including subclasses)
282
ir._serializable = True
283
- if attrs.get("support_weakrefs") is True:
284
- # Supports weakrefs (including subclasses)
285
- ir.support_weakrefs = True
+ if attrs.get("supports_weakref") is True:
+ # Has a tp_weakrefoffset slot allowing the creation of weak references (including subclasses)
+ ir.supports_weakref = True
286
287
# Check for subclassing from builtin types
288
for cls in info.mro:
0 commit comments