Skip to content

Upgrading tomlkit 0.9 to 0.10

Safe0.9.2 → 0.10.2New1Fixed6Other1

SafeUpgrade verdict

Only new features and fixes in this range.

  • Nothing in this range needs changes to your code. It adds features and fixes.
Nothing to change

No breaking, platform, security or deprecated items in this range.

Nothing in this upgrade needs a code or configuration change.

Generated by DepDelta from published Python source. Not mixed with prose notes.

  • changed: function string(raw: str) -> String → function string(raw: str, *, literal: bool=…, multiline: bool=…, escape: bool=…) -> String
  • added: class InvalidStringError(ValueError, TOMLKitError)
  • added: constructor InvalidStringError(value: str, invalid_sequences: Collection[str], delimiter: str)
  • changed: constructor DateTime(year: int, month: int, day: int, hour: int, minute: int, second: int, microsecond: int, tzinfo: Optional[tzinfo], trivia: Trivia, raw: str) -> None → constructor DateTime(year: int, month: int, day: int, hour: int, minute: int, second: int, microsecond: int, tzinfo: Optional[tzinfo], trivia: Optional[Trivia]=…, raw: Optional[str]=…, **kwargs: Any) -> None
  • changed: function item(value: Any, _parent: Optional[Item]=…, _sort_keys: bool=…) -> Item → function item(value: bool) -> Bool | (value: int) -> Integer | (value: float) -> Float | (value: str) -> String | (value: datetime) -> DateTime | (value: date) -> Date | (value: time) -> Time | (value: Sequence[dict]) -> AoT | (value: Sequence) -> Array | (value: dict, _parent: Array=…, _sort_keys: bool=…) -> InlineTable | (value: dict, _parent: Optional[Item]=…, _sort_keys: bool=…) -> Table | (v…
  • added: method Date.replace(*args: Any, **kwargs: Any) -> date
  • added: method DateTime.astimezone(tz: tzinfo) -> datetime
  • added: method DateTime.replace(*args: Any, **kwargs: Any) -> datetime
  • added: method Time.replace(*args: Any, **kwargs: Any) -> time
  • added: property StringType.escaped_sequences -> Collection[str]
  • added: property StringType.invalid_sequences -> Collection[str]
  • added: static method String.from_raw(value: str, type_=…, escape=…) -> String
  • added: static method StringType.select(literal=…, multiline=…) -> StringType
  • added: variable ItemT