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 555edf3 commit e464d5cCopy full SHA for e464d5c
mypyc/irbuild/vtable.py
@@ -14,7 +14,7 @@ def compute_vtable(cls: ClassIR) -> None:
14
return
15
16
if not cls.is_generated:
17
- cls.has_dict = any(x.inherits_python for x in cls.mro)
+ cls.has_dict = cls.supports_weakref = any(x.inherits_python for x in cls.mro)
18
19
for t in cls.mro[1:]:
20
# Make sure all ancestors are processed first
0 commit comments