tomlkit breaking changes
Updated December 4, 2026
On this page
Latest version 0.15.3, released November 24, 2026. Source repository
Packages on PyPI run on Python. Python end of life dates.
tomlkit 0.15.0 breaking changes
- Removed
tomlkit.items.wrap_method
tomlkit.items.wrap_method was removed in tomlkit 0.15.0 pypi.org - Behavior changed
The library now follows TOML spec v1.1, which can change how some documents are parsed or written. Check existing TOML files and output after upgrading. github.com - Behavior changed
sort_keys
Parsed documents now honor sort_keys, so key order in output can differ from before for code that relied on the old behavior. github.com - Signature changed
tomlkit.api.AoT.insert
Was def insert(self, index: int, value: dict) -> None; now def insert(self, index: int, value: dict[str, Any]) -> None. pypi.org - Signature changed
tomlkit.api.AoT.value
Was value: list[dict[Any, Any]]; now value: list[dict[str, Any]]. pypi.org - Signature changed
tomlkit.api.Array.__setitem__
Was def __setitem__(self, key: int | slice, value: Any) -> Any; now def __setitem__(self, key: int | slice, value: Any) -> None. pypi.org - Signature changed
tomlkit.api.Array.value
Was value: list; now value: list[Item]. pypi.org - Signature changed
tomlkit.api.Bool.__init__
Was def __init__(self, t: int, trivia: Trivia) -> None; now def __init__(self, t: int | BoolType, trivia: Trivia) -> None. pypi.org - Signature changed
tomlkit.api.Container.__copy__
Was def __copy__(self) -> Container; now def __copy__(self) -> Self. pypi.org - Signature changed
tomlkit.api.Container.__eq__
Was def __eq__(self, other: dict) -> bool; now def __eq__(self, other: object) -> bool. pypi.org - Signature changed
tomlkit.api.Container.__getitem__
Was def __getitem__(self, key: Key | str) -> Item | Container; now def __getitem__(self, key: Key | str) -> Any. pypi.org - Signature changed
tomlkit.api.Container.add
Was def add(self, key: Key | Item | str, item: Item | None = None) -> Container; now def add(self, key: Key | Item | str, item: Any = None) -> Container. pypi.org - Signature changed
tomlkit.api.Container.append
Was def append(self, key: Key | str | None, item: Item, validate: bool = True) -> Container; now def append(self, key: Key | str | None, item: Any, validate: bool = True) -> Container. pypi.org - Signature changed
tomlkit.api.Container.copy
Was def copy(self) -> Container; now def copy(self) -> Self. pypi.org - Signature changed
tomlkit.api.Container.item
Was def item(self, key: Key | str) -> Item; now def item(self, key: Key | str) -> Item | OutOfOrderTableProxy. pypi.org - Signature changed
tomlkit.api.Container.setdefault
Was def setdefault(self, key: Key | str, default: Any) -> Any; now def setdefault(self, key: Key | str, default: Any = None) -> Any. pypi.org - Signature changed
tomlkit.api.Date.__new__
Was def __new__(cls, year: int, month: int, day: int, *_: Any) -> date; now def __new__(cls, year: int, month: int, day: int, trivia: Trivia | None = None, raw: str = '') -> Date. pypi.org - Signature changed
tomlkit.api.Date.replace
Was def replace(self, *args: Any, **kwargs: Any) -> date; now def replace(self, *args: object, **kwargs: object) -> Date. pypi.org - Signature changed
tomlkit.api.DateTime.__init__
Was def __init__(self, year: int, month: int, day: int, hour: int, minute: int, second: int, microsecond: int, tzinfo: tzinfo | None, trivia: Trivia | None = None, raw: str | None = None, **kwargs: Any) -> None; now def __init__(self... pypi.org - Signature changed
tomlkit.api.DateTime.__new__
Was def __new__(cls, year: int, month: int, day: int, hour: int, minute: int, second: int, microsecond: int, tzinfo: tzinfo | None, *_: Any, **kwargs: Any) -> datetime; now def __new__(cls, year: int, month: int, day: int, hour: int... pypi.org - Signature changed
tomlkit.api.DateTime.astimezone
Was def astimezone(self, tz: tzinfo) -> datetime; now def astimezone(self, tz: tzinfo) -> DateTime. pypi.org - Signature changed
tomlkit.api.DateTime.replace
Was def replace(self, *args: Any, **kwargs: Any) -> datetime; now def replace(self, *args: object, **kwargs: object) -> DateTime. pypi.org - Signature changed
tomlkit.api.Encoder.__call__
Was def __call__(self, __value: Any, _parent: Item | None = None, _sort_keys: bool = False) -> Item; now def __call__(self, __value: Any, /) -> Item. pypi.org - Signature changed
tomlkit.api.Float.__abs__
Was __abs__; now def __abs__(self) -> Float. pypi.org - Signature changed
tomlkit.api.Float.__add__
Was __add__; now def __add__(self, other: object) -> Float. pypi.org - Signature changed
tomlkit.api.Float.__floordiv__
Was __floordiv__; now def __floordiv__(self, other: object) -> Float. pypi.org - Signature changed
tomlkit.api.Float.__mod__
Was __mod__; now def __mod__(self, other: object) -> Float. pypi.org - Signature changed
tomlkit.api.Float.__mul__
Was __mul__; now def __mul__(self, other: object) -> Float. pypi.org - Signature changed
tomlkit.api.Float.__neg__
Was __neg__; now def __neg__(self) -> Float. pypi.org - Signature changed
tomlkit.api.Float.__pos__
Was __pos__; now def __pos__(self) -> Float. pypi.org - Signature changed
tomlkit.api.Float.__pow__
Was __pow__; now def __pow__(self, other: object, mod: None = None) -> Float. pypi.org - Signature changed
tomlkit.api.Float.__radd__
Was __radd__; now def __radd__(self, other: object) -> Float. pypi.org - Signature changed
tomlkit.api.Float.__rfloordiv__
Was __rfloordiv__; now def __rfloordiv__(self, other: object) -> Float. pypi.org - Signature changed
tomlkit.api.Float.__rmod__
Was __rmod__; now def __rmod__(self, other: object) -> Float. pypi.org - Signature changed
tomlkit.api.Float.__rmul__
Was __rmul__; now def __rmul__(self, other: object) -> Float. pypi.org - Signature changed
tomlkit.api.Float.__round__
Was __round__; now def __round__(self, ndigits: int = 0) -> Float. pypi.org - Signature changed
tomlkit.api.Float.__rpow__
Was __rpow__; now def __rpow__(self, other: object, mod: None = None) -> Float. pypi.org - Signature changed
tomlkit.api.Float.__rtruediv__
Was __rtruediv__; now def __rtruediv__(self, other: object) -> Float. pypi.org - Signature changed
tomlkit.api.Float.__truediv__
Was __truediv__; now def __truediv__(self, other: object) -> Float. pypi.org - Signature changed
tomlkit.api.Integer.__abs__
Was __abs__; now def __abs__(self) -> Integer. pypi.org - Signature changed
tomlkit.api.Integer.__add__
Was __add__; now def __add__(self, other: object) -> Integer. pypi.org - Signature changed
tomlkit.api.Integer.__and__
Was __and__; now def __and__(self, other: object) -> Integer. pypi.org - Signature changed
tomlkit.api.Integer.__ceil__
Was __ceil__; now def __ceil__(self) -> Integer. pypi.org - Signature changed
tomlkit.api.Integer.__floor__
Was __floor__; now def __floor__(self) -> Integer. pypi.org - Signature changed
tomlkit.api.Integer.__floordiv__
Was __floordiv__; now def __floordiv__(self, other: object) -> Integer. pypi.org - Signature changed
tomlkit.api.Integer.__invert__
Was __invert__; now def __invert__(self) -> Integer. pypi.org - Signature changed
tomlkit.api.Integer.__lshift__
Was __lshift__; now def __lshift__(self, other: object) -> Integer. pypi.org - Signature changed
tomlkit.api.Integer.__mod__
Was __mod__; now def __mod__(self, other: object) -> Integer. pypi.org - Signature changed
tomlkit.api.Integer.__mul__
Was __mul__; now def __mul__(self, other: object) -> Integer. pypi.org - Signature changed
tomlkit.api.Integer.__neg__
Was __neg__; now def __neg__(self) -> Integer. pypi.org
And 30 more in this version. Sign up to see every change
tomlkit 0.14.0 breaking changes
- Signature changed
tomlkit.api.Encoder
Was Encoder; now class Encoder(Protocol). pypi.org - Signature changed
tomlkit.boolean
Was def boolean(raw: str) -> Bool; now def boolean(raw: str | bool) -> Bool. pypi.org - Signature changed
tomlkit.items.Encoder
Was Encoder; now class Encoder(Protocol). pypi.org
tomlkit 0.13.0 breaking changes
- Signature changed
tomlkit.api.Date.__init__
Was def __init__(self, year: int, month: int, day: int, trivia: Trivia, raw: str) -> None; now def __init__(self, year: int, month: int, day: int, trivia: Trivia | None = None, raw: str = '') -> None. pypi.org - Signature changed
tomlkit.api.Time.__init__
Was def __init__(self, hour: int, minute: int, second: int, microsecond: int, tzinfo: tzinfo | None, trivia: Trivia, raw: str) -> None; now def __init__(self, hour: int, minute: int, second: int, microsecond: int, tzinfo: tzinfo | None... pypi.org - Signature changed
tomlkit.container.OutOfOrderTableProxy.__init__
Was def __init__(self, container: Container, indices: tuple[int]) -> None; now def __init__(self, container: Container, indices: tuple[int, ...]) -> None. pypi.org - Signature changed
tomlkit.items.Date.__init__
Was def __init__(self, year: int, month: int, day: int, trivia: Trivia, raw: str) -> None; now def __init__(self, year: int, month: int, day: int, trivia: Trivia | None = None, raw: str = '') -> None. pypi.org - Signature changed
tomlkit.items.Time.__init__
Was def __init__(self, hour: int, minute: int, second: int, microsecond: int, tzinfo: tzinfo | None, trivia: Trivia, raw: str) -> None; now def __init__(self, hour: int, minute: int, second: int, microsecond: int, tzinfo: tzinfo | None... pypi.org
tomlkit 0.12.0 breaking changes
- Removed
tomlkit.api.Float.__rsub__
tomlkit.float_().__rsub__() was removed in tomlkit 0.12.0 pypi.org - Removed
tomlkit.api.Float.__sub__
tomlkit.float_().__sub__() was removed in tomlkit 0.12.0 pypi.org - Removed
tomlkit.api.Integer.__rsub__
tomlkit.integer().__rsub__() was removed in tomlkit 0.12.0 pypi.org - Removed
tomlkit.api.Integer.__sub__
tomlkit.integer().__sub__() was removed in tomlkit 0.12.0 pypi.org - Removed
tomlkit.items.Float.__rsub__
tomlkit.float_().__rsub__() was removed in tomlkit 0.12.0 pypi.org - Removed
tomlkit.items.Float.__sub__
tomlkit.float_().__sub__() was removed in tomlkit 0.12.0 pypi.org - Removed
tomlkit.items.Integer.__rsub__
tomlkit.integer().__rsub__() was removed in tomlkit 0.12.0 pypi.org - Removed
tomlkit.items.Integer.__sub__
tomlkit.integer().__sub__() was removed in tomlkit 0.12.0 pypi.org - Signature changed
tomlkit.api.DottedKey.__init__
Was def __init__(self, keys: Iterable[Key], sep: str | None = None, original: str | None = None) -> None; now def __init__(self, keys: Iterable[SingleKey], sep: str | None = None, original: str | None = None) -> None. pypi.org - Signature changed
tomlkit.api.Float
Was class Float(float, Item); now class Float(Item, _CustomFloat). pypi.org
And 20 more in this version. Sign up to see every change
tomlkit 0.11.0 breaking changes
- Removed
is_tomlkit
The release removed the is_tomlkit check. Code that tests for this check may no longer behave as before and should be reviewed. github.com
tomlkit 0.10.0 breaking changes
- Signature changed
tomlkit.api.string
Was def string(raw: str) -> String; now def string(raw: str, *, literal: bool = False, multiline: bool = False, escape: bool = True) -> String. pypi.org - Signature changed
tomlkit.items.escape_string
Was def escape_string(s: str) -> str; now def escape_string(s: str, escape_sequences: Collection[str] = _basic_escapes) -> str. pypi.org - Signature changed
tomlkit.string
Was def string(raw: str) -> String; now def string(raw: str, *, literal: bool = False, multiline: bool = False, escape: bool = True) -> String. pypi.org
Older versions
1 older version, each with its first changes. Sign up to see every change
Show 1 older version
tomlkit 0.9.0 breaking changes
- Signature changed
tomlkit.api.float_
Was def float_(raw: str) -> Float; now def float_(raw: Union[str, float]) -> Float. pypi.org - Signature changed
tomlkit.api.integer
Was def integer(raw: str) -> Integer; now def integer(raw: Union[str, int]) -> Integer. pypi.org
And 14 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.