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

Method is_mangled_global

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

Source from the content-addressed store, hash-verified

7907 self.cur_mod_node.alias_deps[target].update(aliases_used)
7908
7909 def is_mangled_global(self, name: str) -> bool:
7910 # A global is mangled if there exists at least one renamed variant.
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.

Callers 1

is_final_redefinitionMethod · 0.95

Calls 1

unmangleFunction · 0.90

Tested by

no test coverage detected