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

Method is_initial_mangled_global

mypy/semanal.py:7913–7915  ·  view source on GitHub ↗
(self, name: str)

Source from the content-addressed store, hash-verified

7911 return unmangle(name) + "'" in self.globals
7912
7913 def is_initial_mangled_global(self, name: str) -> bool:
7914 # If there are renamed definitions for a global, the first one has exactly one prime.
7915 return name == unmangle(name) + "'"
7916
7917 def parse_bool(self, expr: Expression) -> bool | None:
7918 # This wrapper is preserved for plugins.

Callers 1

is_final_redefinitionMethod · 0.95

Calls 1

unmangleFunction · 0.90

Tested by

no test coverage detected