MCPcopy Index your code
hub / github.com/python/mypy / has_no_subclasses

Method has_no_subclasses

mypyc/ir/class_ir.py:343–344  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

341 return any(name in ir.method_decls for ir in self.mro)
342
343 def has_no_subclasses(self) -> bool:
344 return self.children == [] and not self.allow_interpreted_subclasses
345
346 def subclasses(self) -> set[ClassIR] | None:
347 """Return all subclasses of this class, both direct and indirect.

Callers 1

translate_method_callFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected