Skip to content

Commit 86e5b00

Browse files
refactor
1 parent 7459701 commit 86e5b00

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

mypyc/ir/class_ir.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -345,15 +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:
348+
child_subs = child.subclasses()
349+
if child_subs is None:
349350
return None
350-
if not (child.is_ext_class or child.is_final_class):
351-
return None
352-
if child.children:
353-
child_subs = child.subclasses()
354-
if child_subs is None:
355-
return None
356-
result.update(child_subs)
351+
result.update(child_subs)
357352
return result
358353

359354
def concrete_subclasses(self) -> list[ClassIR] | None:

0 commit comments

Comments
 (0)