MCPcopy
hub / github.com/python/mypy / is_sunder

Function is_sunder

mypy/util.py:78–79  ·  view source on GitHub ↗
(name: str)

Source from the content-addressed store, hash-verified

76
77
78def is_sunder(name: str) -> bool:
79 return not is_dunder(name) and name.startswith("_") and name.endswith("_") and name != "_"
80
81
82def split_module_names(mod_name: str) -> list[str]:

Callers 2

is_final_enum_valueMethod · 0.90
enum_membersMethod · 0.90

Calls 3

is_dunderFunction · 0.85
startswithMethod · 0.45
endswithMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…