MCPcopy Create free account
hub / github.com/python/mypy / is_recorded_name

Method is_recorded_name

mypy/stubutil.py:735–737  ·  view source on GitHub ↗

Has this name been recorded previously?

(self, name: str)

Source from the content-addressed store, hash-verified

733 self._toplevel_names.append(name)
734
735 def is_recorded_name(self, name: str) -> bool:
736 """Has this name been recorded previously?"""
737 return self.is_top_level() and name in self._toplevel_names
738
739 def set_defined_names(self, defined_names: set[str]) -> None:
740 self.defined_names = defined_names

Callers 1

visit_func_defMethod · 0.80

Calls 1

is_top_levelMethod · 0.95

Tested by

no test coverage detected