piptools._compat._tomllib_compat module

exception piptools._compat._tomllib_compat.TOMLDecodeError

Bases: ValueError

An error raised if a document is not valid TOML.

piptools._compat._tomllib_compat.load(fp: ~typing.BinaryIO, /, *, parse_float: ~typing.Callable[[str], ~typing.Any] = <class 'float'>) dict[str, Any]

Parse TOML from a binary file object.

piptools._compat._tomllib_compat.loads(s: str, /, *, parse_float: ~typing.Callable[[str], ~typing.Any] = <class 'float'>) dict[str, Any]

Parse TOML from a string.