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 85b07d5 commit 211ea3cCopy full SHA for 211ea3c
mypyc/irbuild/prepare.py
@@ -280,6 +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
286
287
# Check for subclassing from builtin types
288
for cls in info.mro:
0 commit comments