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

Function is_toml

mypy/config_parser.py:396–397  ·  view source on GitHub ↗
(filename: str)

Source from the content-addressed store, hash-verified

394
395
396def is_toml(filename: str) -> bool:
397 return filename.lower().endswith(".toml")
398
399
400def destructure_overrides(toml_data: dict[str, Any]) -> dict[str, Any]:

Callers 3

_parse_individual_fileFunction · 0.85
get_prefixFunction · 0.85
get_config_module_namesFunction · 0.85

Calls 2

lowerMethod · 0.80
endswithMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…