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

Method visit_mypy_file

mypy/stubgen.py:550–556  ·  view source on GitHub ↗
(self, o: MypyFile)

Source from the content-addressed store, hash-verified

548 return self._class_stack[-1] if self._class_stack else None
549
550 def visit_mypy_file(self, o: MypyFile) -> None:
551 self.module_name = o.fullname # Current module being processed
552 self.path = o.path
553 self.set_defined_names(find_defined_names(o))
554 self.referenced_names = find_referenced_names(o)
555 super().visit_mypy_file(o)
556 self.check_undefined_names()
557
558 def visit_overloaded_func_def(self, o: OverloadedFuncDef) -> None:
559 """@property with setters and getters, @overload chain and some others."""

Callers

nothing calls this directly

Calls 4

find_defined_namesFunction · 0.85
find_referenced_namesFunction · 0.85
set_defined_namesMethod · 0.80
check_undefined_namesMethod · 0.80

Tested by

no test coverage detected