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 7459701 commit 86e5b00Copy full SHA for 86e5b00
mypyc/ir/class_ir.py
@@ -345,15 +345,10 @@ def subclasses(self) -> set[ClassIR] | None:
345
return None
346
result = set(self.children)
347
for child in self.children:
348
- if child.allow_interpreted_subclasses:
+ child_subs = child.subclasses()
349
+ if child_subs is 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
356
- result.update(child_subs)
+ result.update(child_subs)
357
return result
358
359
def concrete_subclasses(self) -> list[ClassIR] | None:
0 commit comments