Skip to content

build(deps): update tomlkit requirement from >=0.15.2 to >=0.15.3 - #784

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

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

Conversation

@dependabot

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

Copy link
Copy Markdown
Contributor

Updates the requirements on tomlkit to permit the latest version.

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)

[0.15.2] - 2026-10-16

Changed

  • Write the ESC control character as \u001b instead of \e, which is only valid in TOML 1.1, so the output stays readable by TOML 1.0 parsers such as tomllib. (#641)
  • key_value() now raises UnexpectedCharError on anything other than whitespace or a comment after the pair, instead of silently discarding it (e.g. key_value("a = 1 b = 2")), matching parse(). (#594)
  • integer() given a string now validates it against the TOML integer grammar and keeps the original text, so grouping underscores (e.g. integer("1_000")) survive dumps(); strings that are not valid TOML integers (e.g. "010") now raise ValueError. (#336)
  • Add a fold argument to DateTime and Time, mirroring the stdlib, and carry fold through item(), arithmetic (including datetime subtraction) and unwrap(), so a folded local time no longer converts an hour off. (#619, #623, #626)
  • Declare the project metadata in the PEP 621 [project] table; building from source now requires poetry-core>=2.2.0. (#607, #609)

Fixed

  • Fix valid TOML being rejected when an out-of-order table reopens an implicit super-table with a dotted key: [a.b.c] then [a] with b.z = 1 extends the implicit a.b super-table rather than redefining it (stdlib tomllib accepts it), so it now parses and round-trips instead of raising Redefinition of an existing table. The concrete-table case ([a.b] then [a] b.z = 1) stays rejected. (#565)
  • Fix uppercase E exponent after a leading-zero mantissa (e.g. 0E2) being rejected as an invalid number while 0e2 parsed fine. (#586)
  • Fix non-lowercase special floats (e.g. Inf, NaN, -INF) being accepted; TOML only allows lowercase inf and nan, so they now raise ParseError. (#628)
  • Fix parse errors reporting the wrong line and column in documents with CRLF or mixed line endings. (#642)
  • Fix item() reordering the keys of an inline table (dict-valued keys were forced last) under the default sort_keys=False. (#546)

... (truncated)

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 dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Nov 30, 2026
Updates the requirements on [tomlkit](https://github.com/python-poetry/tomlkit) to permit the latest version.
- [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
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/pip/tomlkit-gte-0.15.3 branch from 943b685 to 17e1ab4 Compare December 4, 2026 20:20

This branch has not been deployed

No deployments
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