MCPcopy
hub / github.com/psf/black / _load_toml

Function _load_toml

src/black/files.py:36–38  ·  view source on GitHub ↗
(path: Path | str)

Source from the content-addressed store, hash-verified

34
35@lru_cache
36def _load_toml(path: Path | str) -> dict[str, Any]:
37 with open(path, "rb") as f:
38 return tomllib.load(f)
39
40
41@lru_cache

Callers 2

find_project_rootFunction · 0.85
parse_pyproject_tomlFunction · 0.85

Calls 1

loadMethod · 0.80

Tested by

no test coverage detected