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 58870d2 commit a38ddf1Copy full SHA for a38ddf1
mypyc/irbuild/prepare.py
@@ -326,6 +326,9 @@ def prepare_class_def(
326
if attrs.get("serializable") is True:
327
# Supports copy.copy and pickle (including subclasses)
328
ir._serializable = True
329
+ if attrs.get("support_weakrefs") is True:
330
+ # Supports weakrefs (including subclasses)
331
+ ir.support_weakrefs = True
332
333
# Check for subclassing from builtin types
334
for cls in info.mro:
0 commit comments