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

Function unmangle

mypy/util.py:471–473  ·  view source on GitHub ↗

Remove internal suffixes from a short name.

(name: str)

Source from the content-addressed store, hash-verified

469
470
471def unmangle(name: str) -> str:
472 """Remove internal suffixes from a short name."""
473 return name.rstrip("'")
474
475
476def get_unique_redefinition_name(name: str, existing: Container[str]) -> str:

Callers 11

analyze_name_lvalueMethod · 0.90
is_final_redefinitionMethod · 0.90
already_definedMethod · 0.90
is_mangled_globalMethod · 0.90
cant_assign_to_finalMethod · 0.90

Calls 1

rstripMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…