MCPcopy Index your code
hub / github.com/fastapi/fastapi / normalize_name

Function normalize_name

fastapi/_compat/v2.py:425–426  ·  view source on GitHub ↗
(name: str)

Source from the content-addressed store, hash-verified

423
424
425def normalize_name(name: str) -> str:
426 return re.sub(r"[^a-zA-Z0-9.\-_]", "_", name)
427
428
429def get_model_name_map(unique_models: TypeModelSet) -> dict[TypeModelOrEnum, str]:

Callers 1

get_model_name_mapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…