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 f06e6b6 commit e47b5f9Copy full SHA for e47b5f9
1 file changed
mypyc/ir/class_ir.py
@@ -333,7 +333,11 @@ def has_method_decl(self, name: str) -> bool:
333
return any(name in ir.method_decls for ir in self.mro)
334
335
def has_no_subclasses(self) -> bool:
336
- return self.children == [] and not self.allow_interpreted_subclasses and (self.is_ext_class or self.is_final_class)
+ return (
337
+ self.children == []
338
+ and not self.allow_interpreted_subclasses
339
+ and (self.is_ext_class or self.is_final_class)
340
+ )
341
342
def subclasses(self) -> set[ClassIR] | None:
343
"""Return all subclasses of this class, both direct and indirect.
0 commit comments