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

Method visit_class_def

mypy/partially_defined.py:674–678  ·  view source on GitHub ↗
(self, o: ClassDef)

Source from the content-addressed store, hash-verified

672 o.body.accept(self)
673
674 def visit_class_def(self, o: ClassDef) -> None:
675 self.process_definition(o.name)
676 self.tracker.enter_scope(ScopeType.Class)
677 super().visit_class_def(o)
678 self.tracker.exit_scope()
679
680 def visit_import(self, o: Import) -> None:
681 for mod, alias in o.ids:

Callers

nothing calls this directly

Calls 3

process_definitionMethod · 0.95
exit_scopeMethod · 0.80
enter_scopeMethod · 0.45

Tested by

no test coverage detected