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 35584b7 commit 6420cceCopy full SHA for 6420cce
mypyc/irbuild/prepare.py
@@ -326,9 +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
+ if attrs.get("supports_weakref") is True:
+ # Has a tp_weakrefoffset slot allowing the creation of weak references (including subclasses)
+ ir.supports_weakref = True
332
333
# Check for subclassing from builtin types
334
for cls in info.mro:
0 commit comments