Skip to content

Commit e47b5f9

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f06e6b6 commit e47b5f9

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

mypyc/ir/class_ir.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,11 @@ def has_method_decl(self, name: str) -> bool:
333333
return any(name in ir.method_decls for ir in self.mro)
334334

335335
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)
336+
return (
337+
self.children == []
338+
and not self.allow_interpreted_subclasses
339+
and (self.is_ext_class or self.is_final_class)
340+
)
337341

338342
def subclasses(self) -> set[ClassIR] | None:
339343
"""Return all subclasses of this class, both direct and indirect.

0 commit comments

Comments
 (0)