nitpick.tomlkit_ext module
Extensions for the tomlkit package, with drop-in replacement functions and classes.
Eventually, some of the code here should/could be proposed as pull requests to the original package.
- nitpick.tomlkit_ext.load(file_pointer: IO[str] | IO[bytes] | Path) TOMLDocument [source]
Load a TOML file from a file-like object or path.
Return an empty document if the file doesn’t exist.
Drop-in replacement for
tomlkit.api.load()
.