Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
36
def
_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_root
Function · 0.85
parse_pyproject_toml
Function · 0.85
Calls
1
load
Method · 0.80
Tested by
no test coverage detected