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