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

Method is_defined_in_current_module

mypy/semanal.py:6710–6713  ·  view source on GitHub ↗
(self, fullname: str | None)

Source from the content-addressed store, hash-verified

6708 return False
6709
6710 def is_defined_in_current_module(self, fullname: str | None) -> bool:
6711 if not fullname:
6712 return False
6713 return module_prefix(self.modules, fullname) == self.cur_mod_id
6714
6715 def lookup_qualified(
6716 self, name: str, ctx: Context, suppress_errors: bool = False

Callers 2

is_local_nameMethod · 0.95

Calls 1

module_prefixFunction · 0.90

Tested by

no test coverage detected