Skip to content

Commit 376356b

Browse files
Update class_ir.py
1 parent f84f576 commit 376356b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mypyc/ir/class_ir.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,10 @@ def subclasses(self) -> set[ClassIR] | None:
345345
return None
346346
result = set(self.children)
347347
for child in self.children:
348+
if child.allow_interpreted_subclasses:
349+
return None
350+
if not (child.is_ext_class or child.is_final):
351+
return None
348352
if child.children:
349353
child_subs = child.subclasses()
350354
if child_subs is None:

0 commit comments

Comments
 (0)