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

Method check_undefined_names

mypy/stubutil.py:751–758  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

749 self.add_name(f"{pkg}.{t}", require=False)
750
751 def check_undefined_names(self) -> None:
752 undefined_names = [name for name in self._all_ or [] if name not in self._toplevel_names]
753 if undefined_names:
754 if self._output:
755 self.add("\n")
756 self.add("# Names in __all__ with no definition:\n")
757 for name in sorted(undefined_names):
758 self.add(f"# {name}\n")
759
760 def get_signatures(
761 self,

Callers 2

visit_mypy_fileMethod · 0.80
generate_moduleMethod · 0.80

Calls 2

addMethod · 0.95
sortedFunction · 0.85

Tested by

no test coverage detected