Skip to content

⬆️ Bump tomlkit from 0.15.2 to 0.15.3 - #164

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/tomlkit-0.15.3
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/tomlkit-0.15.3

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 30, 2026

Copy link
Copy Markdown
Contributor

Bumps tomlkit from 0.15.2 to 0.15.3.

Release notes

Sourced from tomlkit's releases.

0.15.3

What's Changed

New Contributors

... (truncated)

Changelog

Sourced from tomlkit's changelog.

[0.15.3] - 2026-11-24

Changed

  • Speed up looking up and replacing keys in tables: string lookups no longer build a temporary key, and replacing an existing value no longer scans every key in the table, which made updating many keys of a large table quadratic. (#704)
  • Speed up repeated array appends by keeping existing indexes instead of rebuilding them. (#666)
  • Speed up creating string values and keys, e.g. when building a document from Python data and dumping it: strings are escaped in one pass instead of per character, and the escape and bare-key character sets are built once. (#709)
  • comment(), Item.comment() and Array.add_line(..., comment=...) now raise ValueError for control characters that TOML forbids in comments (anything but tab, plus DEL), including a bare carriage return; comment() still accepts LF and CRLF line breaks. Previously such comments were written out and produced a document that could not be parsed back. (#705)
  • date() now raises ValueError when given a datetime string such as "1979-05-13T12:34:56" instead of returning a datetime. (#673)
  • Array.sort() now reorders the serialized values too, keeping the array's formatting and comments in place; previously list.sort() only reordered the Python list, so dumps() still wrote the old order. (#644)

Fixed

  • dumps(..., sort_keys=True) now sorts the keys of a parsed document recursively, matching the behavior on a plain dict; previously only the top-level keys were sorted while nested tables, inline tables, arrays of tables and inline tables inside an array kept their original order. (#614)
  • Allow Table.setdefault() and InlineTable.setdefault() to retrieve existing values without supplying a default, matching document and mapping behavior. (#710)
  • Fix item() and dumps() writing a datetime whose UTC offset is not a whole number of minutes (e.g. the historical LMT offsets zoneinfo gives, such as -00:44:30) as invalid TOML like 1900-01-01T12:00:00Z:30, which no parser accepts. Such a value is now written as the same instant in UTC; this also covers DateTime.replace() and astimezone(). (#701)
  • Allow DateTime.astimezone() to use the local timezone when no timezone argument is supplied, matching datetime.datetime. (#651)
  • Arithmetic and replace() results for Integer, Float, String, DateTime, Date and Time no longer share the original item's Trivia, so changing the result's comment or indentation no longer rewrites the item still stored in the document. (#683)
  • Fix round() on a Float without ndigits returning a Float (e.g. 2.0) instead of an Integer, matching round() on a plain float. (#695)
  • Fix a regression in 0.15.1 where string(..., multiline=True, escape=False) added an extra newline to a value starting with a newline, making it impossible to write such a raw string verbatim; with escape=False the value is now used as given again. (#655)
  • Preserve single-line literal quotes when replacing a table field with a plain string, falling back to basic quoting when the value requires escaping. (#325)
  • Fix invalid output after deleting the last key under a dotted key inside an inline table; the emptied table now renders as b = {}. (#664)
  • Fix valid TOML being rejected as a duplicate when an out-of-order table header extends a table built from several dotted keys, e.g. [a] with b.c = 1 and b.d = 2, then [a.b.e] after another table. (#632)
  • Fix an AttributeError when a table is defined out of order under an indented header nested four or more levels deep, e.g. [a.b.c.d] then [a.b.c]. (#663)
  • Fix an out-of-order table being moved when it is separated from its sibling by an array of tables (e.g. [tool.poetry], [[plugins]], [tool.other]), so the document no longer round-trips unchanged. (#702)
  • Fix update() on an out-of-order table dropping sibling keys stored in its other fragments when one of the updated keys appears in a later fragment. (#675)
  • Fix deleting, popping or replacing a key that was newly added to an out-of-order table. (#699)
  • Fix TOMLDocument.value and comparisons keeping only the last fragment of an array of tables split by other tables; all entries are now included, matching unwrap(). (#697)
  • Fix assigning plain dicts to a slice of an array of tables (e.g. doc["a"][:1] = [{"x": 4}]) producing invalid output and leaving unwrap() and json.dumps() out of sync; an extended slice of the wrong length now raises before changing the document. (#631)
  • Assigning a value that is not a table to an item or slice of an array of tables now raises ValueError before changing the document. (#712)
  • Fix a RecursionError when parsing a dotted key at the maximum nesting depth followed by another key under the same prefix; Container, Table and InlineTable now implement __deepcopy__, and errors while assembling tables are reported as ParseError. (#714)
  • Custom encoders registered with register_encoder() now receive only the _parent and _sort_keys keyword arguments they declare (or both when they accept **kwargs); previously an encoder declaring _parent but not _sort_keys failed with TypeError, and one declaring only _sort_keys never received it. (#698)
Commits
  • d2aa305 Release 0.15.3 (#719)
  • f91f20c fix: support out-of-order table header after dotted keys (#632) (#717)
  • 543fcef Sort parsed documents recursively with sort_keys (#617)
  • 3ea5ff3 [pre-commit.ci] pre-commit autoupdate (#718)
  • b57da28 tests: stop using parse_rfc3339 as the toml-test datetime oracle (#639)
  • 2eacdcb Allow table setdefault calls without an explicit default (#710)
  • 1c551e5 fix: implement deepcopy on Container and Table to avoid RecursionError (#...
  • 63853a9 Reject non-table array-of-tables assignments before mutation (#712)
  • ec7e242 chore(deps): bump soupsieve from 2.9 to 4.0 in /docs (#713)
  • 7eabe66 [pre-commit.ci] pre-commit autoupdate (#715)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [tomlkit](https://github.com/python-poetry/tomlkit) from 0.15.2 to 0.15.3.
- [Release notes](https://github.com/python-poetry/tomlkit/releases)
- [Changelog](https://github.com/python-poetry/tomlkit/blob/master/CHANGELOG.md)
- [Commits](python-poetry/tomlkit@0.15.2...0.15.3)

---
updated-dependencies:
- dependency-name: tomlkit
  dependency-version: 0.15.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Nov 30, 2026
@github-actions
github-actions Bot enabled auto-merge (squash) November 30, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants