Upgrading tomlkit 0.8 to 0.9
Review needed0.8.0 → 0.9.2New2Changed1Fixed3Other1
Review neededUpgrade verdict
1 behavior change.
In plain terms
- When a table contains nothing but another table, the library now writes it in the shorter super-table form instead of a nested block.
Must act Nothing to change
No breaking, platform, security or deprecated items in this range.
Nothing in this upgrade needs a code or configuration change.
API changes
Generated by DepDelta from published Python source. Not mixed with prose notes.
- changed:
function float_(raw: str) -> Float → function float_(raw: Union[str, float]) -> Float - changed:
function integer(raw: str) -> Integer → function integer(raw: Union[str, int]) -> Integer - changed:
function key(k: str) -> Key → function key(k: Union[str, Iterable[str]]) -> Key - changed:
function loads(string: str) -> TOMLDocument → function loads(string: Union[str, bytes]) -> TOMLDocument - changed:
function parse(string: str) -> TOMLDocument → function parse(string: Union[str, bytes]) -> TOMLDocument - changed:
function table() -> Table → function table(is_super_table: bool=…) -> Table
- changed:
function item(value, _parent=…, _sort_keys=…) → function item(value: Any, _parent: Optional[Item]=…, _sort_keys: bool=…) -> Item - added:
method Key.is_multi() -> bool
- changed:
method Parser.parse_error(exception=…, *args) → method Parser.parse_error(exception=…, *args, **kwargs)
- changed:
method Source.parse_error(exception: Type[ParseError]=…, *args: Any) -> ParseError → method Source.parse_error(exception: Type[ParseError]=…, *args: Any, **kwargs: Any) -> ParseError