---
title: "tomlkit 0.15.0 Breaking Changes on PyPI | Since.dev"
description: "What each tomlkit release removed, renamed or changed: 138 breaking changes in 7 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/tomlkit
last_updated: 2026-12-04
---

# tomlkit breaking changes

tomlkit 0.15.0 (May 10, 2026) is its newest release with breaking changes, 80 of them. The first: Removed tomlkit.items.wrap_method. Every breaking API change we have recorded in tomlkit on PyPI: 138 breaking changes in 7 versions. Below, its 7 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.15.3`, released November 24, 2026. [Source repository](https://github.com/python-poetry/tomlkit)

Packages on PyPI run on Python. [Python end of life dates](https://since.dev/calendar/python.md).

- From [0.9.0](#v-0-9-0) to [0.15.0](#v-0-15-0): 122 breaking changes in 6 versions.

## tomlkit 0.15.0 breaking changes

tomlkit 0.15.0, released May 10, 2026: 80 breaking changes.

- **Removed** `tomlkit.items.wrap_method`  

tomlkit.items.wrap_method was removed in tomlkit 0.15.0 [pypi.org](https://pypi.org/project/tomlkit/0.15.0/)
- **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](https://github.com/python-poetry/tomlkit/releases/tag/0.15.0)
- **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](https://github.com/python-poetry/tomlkit/releases/tag/0.15.0)
- **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](https://pypi.org/project/tomlkit/0.15.0/)
- **Signature changed** `tomlkit.api.AoT.value`  

Was value: list\[dict\[Any, Any\]\]; now value: list\[dict\[str, Any\]\]. [pypi.org](https://pypi.org/project/tomlkit/0.15.0/)
- **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](https://pypi.org/project/tomlkit/0.15.0/)
- **Signature changed** `tomlkit.api.Array.value`  

Was value: list; now value: list\[Item\]. [pypi.org](https://pypi.org/project/tomlkit/0.15.0/)
- **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](https://pypi.org/project/tomlkit/0.15.0/)
- **Signature changed** `tomlkit.api.Container.__copy__`  

Was def \_\_copy\_\_(self) -> Container; now def \_\_copy\_\_(self) -> Self. [pypi.org](https://pypi.org/project/tomlkit/0.15.0/)
- **Signature changed** `tomlkit.api.Container.__eq__`  

Was def \_\_eq\_\_(self, other: dict) -> bool; now def \_\_eq\_\_(self, other: object) -> bool. [pypi.org](https://pypi.org/project/tomlkit/0.15.0/)
- **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](https://pypi.org/project/tomlkit/0.15.0/)
- **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](https://pypi.org/project/tomlkit/0.15.0/)
- **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](https://pypi.org/project/tomlkit/0.15.0/)
- **Signature changed** `tomlkit.api.Container.copy`  

Was def copy(self) -> Container; now def copy(self) -> Self. [pypi.org](https://pypi.org/project/tomlkit/0.15.0/)
- **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](https://pypi.org/project/tomlkit/0.15.0/)
- **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](https://pypi.org/project/tomlkit/0.15.0/)
- **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](https://pypi.org/project/tomlkit/0.15.0/)
- **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](https://pypi.org/project/tomlkit/0.15.0/)
- **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](https://pypi.org/project/tomlkit/0.15.0/)
- **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](https://pypi.org/project/tomlkit/0.15.0/)
- **Signature changed** `tomlkit.api.DateTime.astimezone`  

Was def astimezone(self, tz: tzinfo) -> datetime; now def astimezone(self, tz: tzinfo) -> DateTime. [pypi.org](https://pypi.org/project/tomlkit/0.15.0/)
- **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](https://pypi.org/project/tomlkit/0.15.0/)
- **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](https://pypi.org/project/tomlkit/0.15.0/)
- **Signature changed** `tomlkit.api.Float.__abs__`  

Was \_\_abs\_\_; now def \_\_abs\_\_(self) -> Float. [pypi.org](https://pypi.org/project/tomlkit/0.15.0/)
- **Signature changed** `tomlkit.api.Float.__add__`  

Was \_\_add\_\_; now def \_\_add\_\_(self, other: object) -> Float. [pypi.org](https://pypi.org/project/tomlkit/0.15.0/)
- **Signature changed** `tomlkit.api.Float.__floordiv__`  

Was \_\_floordiv\_\_; now def \_\_floordiv\_\_(self, other: object) -> Float. [pypi.org](https://pypi.org/project/tomlkit/0.15.0/)
- **Signature changed** `tomlkit.api.Float.__mod__`  

Was \_\_mod\_\_; now def \_\_mod\_\_(self, other: object) -> Float. [pypi.org](https://pypi.org/project/tomlkit/0.15.0/)
- **Signature changed** `tomlkit.api.Float.__mul__`  

Was \_\_mul\_\_; now def \_\_mul\_\_(self, other: object) -> Float. [pypi.org](https://pypi.org/project/tomlkit/0.15.0/)
- **Signature changed** `tomlkit.api.Float.__neg__`  

Was \_\_neg\_\_; now def \_\_neg\_\_(self) -> Float. [pypi.org](https://pypi.org/project/tomlkit/0.15.0/)
- **Signature changed** `tomlkit.api.Float.__pos__`  

Was \_\_pos\_\_; now def \_\_pos\_\_(self) -> Float. [pypi.org](https://pypi.org/project/tomlkit/0.15.0/)
- **Signature changed** `tomlkit.api.Float.__pow__`  

Was \_\_pow\_\_; now def \_\_pow\_\_(self, other: object, mod: None = None) -> Float. [pypi.org](https://pypi.org/project/tomlkit/0.15.0/)
- **Signature changed** `tomlkit.api.Float.__radd__`  

Was \_\_radd\_\_; now def \_\_radd\_\_(self, other: object) -> Float. [pypi.org](https://pypi.org/project/tomlkit/0.15.0/)
- **Signature changed** `tomlkit.api.Float.__rfloordiv__`  

Was \_\_rfloordiv\_\_; now def \_\_rfloordiv\_\_(self, other: object) -> Float. [pypi.org](https://pypi.org/project/tomlkit/0.15.0/)
- **Signature changed** `tomlkit.api.Float.__rmod__`  

Was \_\_rmod\_\_; now def \_\_rmod\_\_(self, other: object) -> Float. [pypi.org](https://pypi.org/project/tomlkit/0.15.0/)
- **Signature changed** `tomlkit.api.Float.__rmul__`  

Was \_\_rmul\_\_; now def \_\_rmul\_\_(self, other: object) -> Float. [pypi.org](https://pypi.org/project/tomlkit/0.15.0/)
- **Signature changed** `tomlkit.api.Float.__round__`  

Was \_\_round\_\_; now def \_\_round\_\_(self, ndigits: int = 0) -> Float. [pypi.org](https://pypi.org/project/tomlkit/0.15.0/)
- **Signature changed** `tomlkit.api.Float.__rpow__`  

Was \_\_rpow\_\_; now def \_\_rpow\_\_(self, other: object, mod: None = None) -> Float. [pypi.org](https://pypi.org/project/tomlkit/0.15.0/)
- **Signature changed** `tomlkit.api.Float.__rtruediv__`  

Was \_\_rtruediv\_\_; now def \_\_rtruediv\_\_(self, other: object) -> Float. [pypi.org](https://pypi.org/project/tomlkit/0.15.0/)
- **Signature changed** `tomlkit.api.Float.__truediv__`  

Was \_\_truediv\_\_; now def \_\_truediv\_\_(self, other: object) -> Float. [pypi.org](https://pypi.org/project/tomlkit/0.15.0/)
- **Signature changed** `tomlkit.api.Integer.__abs__`  

Was \_\_abs\_\_; now def \_\_abs\_\_(self) -> Integer. [pypi.org](https://pypi.org/project/tomlkit/0.15.0/)
- **Signature changed** `tomlkit.api.Integer.__add__`  

Was \_\_add\_\_; now def \_\_add\_\_(self, other: object) -> Integer. [pypi.org](https://pypi.org/project/tomlkit/0.15.0/)
- **Signature changed** `tomlkit.api.Integer.__and__`  

Was \_\_and\_\_; now def \_\_and\_\_(self, other: object) -> Integer. [pypi.org](https://pypi.org/project/tomlkit/0.15.0/)
- **Signature changed** `tomlkit.api.Integer.__ceil__`  

Was \_\_ceil\_\_; now def \_\_ceil\_\_(self) -> Integer. [pypi.org](https://pypi.org/project/tomlkit/0.15.0/)
- **Signature changed** `tomlkit.api.Integer.__floor__`  

Was \_\_floor\_\_; now def \_\_floor\_\_(self) -> Integer. [pypi.org](https://pypi.org/project/tomlkit/0.15.0/)
- **Signature changed** `tomlkit.api.Integer.__floordiv__`  

Was \_\_floordiv\_\_; now def \_\_floordiv\_\_(self, other: object) -> Integer. [pypi.org](https://pypi.org/project/tomlkit/0.15.0/)
- **Signature changed** `tomlkit.api.Integer.__invert__`  

Was \_\_invert\_\_; now def \_\_invert\_\_(self) -> Integer. [pypi.org](https://pypi.org/project/tomlkit/0.15.0/)
- **Signature changed** `tomlkit.api.Integer.__lshift__`  

Was \_\_lshift\_\_; now def \_\_lshift\_\_(self, other: object) -> Integer. [pypi.org](https://pypi.org/project/tomlkit/0.15.0/)
- **Signature changed** `tomlkit.api.Integer.__mod__`  

Was \_\_mod\_\_; now def \_\_mod\_\_(self, other: object) -> Integer. [pypi.org](https://pypi.org/project/tomlkit/0.15.0/)
- **Signature changed** `tomlkit.api.Integer.__mul__`  

Was \_\_mul\_\_; now def \_\_mul\_\_(self, other: object) -> Integer. [pypi.org](https://pypi.org/project/tomlkit/0.15.0/)
- **Signature changed** `tomlkit.api.Integer.__neg__`  

Was \_\_neg\_\_; now def \_\_neg\_\_(self) -> Integer. [pypi.org](https://pypi.org/project/tomlkit/0.15.0/)

And 30 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## tomlkit 0.14.0 breaking changes

tomlkit 0.14.0, released January 13, 2026: 3 breaking changes.

- **Signature changed** `tomlkit.api.Encoder`  

Was Encoder; now class Encoder(Protocol). [pypi.org](https://pypi.org/project/tomlkit/0.14.0/)
- **Signature changed** `tomlkit.boolean`  

Was def boolean(raw: str) -> Bool; now def boolean(raw: str | bool) -> Bool. [pypi.org](https://pypi.org/project/tomlkit/0.14.0/)
- **Signature changed** `tomlkit.items.Encoder`  

Was Encoder; now class Encoder(Protocol). [pypi.org](https://pypi.org/project/tomlkit/0.14.0/)

## tomlkit 0.13.0 breaking changes

tomlkit 0.13.0, released July 10, 2024: 5 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](https://pypi.org/project/tomlkit/0.13.0/)
- **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](https://pypi.org/project/tomlkit/0.13.0/)
- **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](https://pypi.org/project/tomlkit/0.13.0/)
- **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](https://pypi.org/project/tomlkit/0.13.0/)
- **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](https://pypi.org/project/tomlkit/0.13.0/)

## tomlkit 0.12.0 breaking changes

tomlkit 0.12.0, released July 27, 2023: 30 breaking changes.

- **Removed** `tomlkit.api.Float.__rsub__`  

tomlkit.float\_().\_\_rsub\_\_() was removed in tomlkit 0.12.0 [pypi.org](https://pypi.org/project/tomlkit/0.12.0/)
- **Removed** `tomlkit.api.Float.__sub__`  

tomlkit.float\_().\_\_sub\_\_() was removed in tomlkit 0.12.0 [pypi.org](https://pypi.org/project/tomlkit/0.12.0/)
- **Removed** `tomlkit.api.Integer.__rsub__`  

tomlkit.integer().\_\_rsub\_\_() was removed in tomlkit 0.12.0 [pypi.org](https://pypi.org/project/tomlkit/0.12.0/)
- **Removed** `tomlkit.api.Integer.__sub__`  

tomlkit.integer().\_\_sub\_\_() was removed in tomlkit 0.12.0 [pypi.org](https://pypi.org/project/tomlkit/0.12.0/)
- **Removed** `tomlkit.items.Float.__rsub__`  

tomlkit.float\_().\_\_rsub\_\_() was removed in tomlkit 0.12.0 [pypi.org](https://pypi.org/project/tomlkit/0.12.0/)
- **Removed** `tomlkit.items.Float.__sub__`  

tomlkit.float\_().\_\_sub\_\_() was removed in tomlkit 0.12.0 [pypi.org](https://pypi.org/project/tomlkit/0.12.0/)
- **Removed** `tomlkit.items.Integer.__rsub__`  

tomlkit.integer().\_\_rsub\_\_() was removed in tomlkit 0.12.0 [pypi.org](https://pypi.org/project/tomlkit/0.12.0/)
- **Removed** `tomlkit.items.Integer.__sub__`  

tomlkit.integer().\_\_sub\_\_() was removed in tomlkit 0.12.0 [pypi.org](https://pypi.org/project/tomlkit/0.12.0/)
- **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](https://pypi.org/project/tomlkit/0.12.0/)
- **Signature changed** `tomlkit.api.Float`  

Was class Float(float, Item); now class Float(Item, \_CustomFloat). [pypi.org](https://pypi.org/project/tomlkit/0.12.0/)

And 20 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## tomlkit 0.11.0 breaking changes

tomlkit 0.11.0, released May 24, 2022: 1 breaking change.

- **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](https://github.com/python-poetry/tomlkit/releases/tag/0.11.0)

## tomlkit 0.10.0 breaking changes

tomlkit 0.10.0, released February 18, 2022: 3 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](https://pypi.org/project/tomlkit/0.10.0/)
- **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](https://pypi.org/project/tomlkit/0.10.0/)
- **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](https://pypi.org/project/tomlkit/0.10.0/)

## Older versions

1 older version, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### tomlkit 0.9.0 breaking changes

tomlkit 0.9.0, released February 1, 2022: 16 breaking changes.

- **Signature changed** `tomlkit.api.float_`  

Was def float\_(raw: str) -> Float; now def float\_(raw: Union\[str, float\]) -> Float. [pypi.org](https://pypi.org/project/tomlkit/0.9.0/)
- **Signature changed** `tomlkit.api.integer`  

Was def integer(raw: str) -> Integer; now def integer(raw: Union\[str, int\]) -> Integer. [pypi.org](https://pypi.org/project/tomlkit/0.9.0/)

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](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
