deps: update tomlkit requirement from <1.0,>=0.15.0 to >=0.15.2,<1.0 (#4653)

Updates the requirements on
[tomlkit](https://github.com/python-poetry/tomlkit) to permit the latest
version.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/python-poetry/tomlkit/releases">tomlkit's
releases</a>.</em></p>
<blockquote>
<h2>0.15.2</h2>
<h2>What's Changed</h2>
<ul>
<li>Fix inline table separator after append by <a
href="https://github.com/cyliu0"><code>@​cyliu0</code></a> in <a
href="https://redirect.github.com/python-poetry/tomlkit/pull/477">python-poetry/tomlkit#477</a></li>
<li>chore(deps): bump idna from 3.7 to 3.15 in /docs by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/python-poetry/tomlkit/pull/481">python-poetry/tomlkit#481</a></li>
<li>chore(deps-dev): bump idna from 3.7 to 3.15 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/python-poetry/tomlkit/pull/480">python-poetry/tomlkit#480</a></li>
<li>chore(deps): bump urllib3 from 2.5.0 to 2.7.0 in /docs by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/python-poetry/tomlkit/pull/475">python-poetry/tomlkit#475</a></li>
<li>[pre-commit.ci] pre-commit autoupdate by <a
href="https://github.com/pre-commit-ci"><code>@​pre-commit-ci</code></a>[bot]
in <a
href="https://redirect.github.com/python-poetry/tomlkit/pull/478">python-poetry/tomlkit#478</a></li>
<li>[pre-commit.ci] pre-commit autoupdate by <a
href="https://github.com/pre-commit-ci"><code>@​pre-commit-ci</code></a>[bot]
in <a
href="https://redirect.github.com/python-poetry/tomlkit/pull/484">python-poetry/tomlkit#484</a></li>
<li>Fix duplicated comma when removing a middle inline table element by
<a
href="https://github.com/sarathfrancis90"><code>@​sarathfrancis90</code></a>
in <a
href="https://redirect.github.com/python-poetry/tomlkit/pull/486">python-poetry/tomlkit#486</a></li>
<li>Add native <strong>contains</strong> to Container, Table and
InlineTable by <a
href="https://github.com/tfoutrein"><code>@​tfoutrein</code></a> in <a
href="https://redirect.github.com/python-poetry/tomlkit/pull/487">python-poetry/tomlkit#487</a></li>
<li>Make Source index-based instead of materializing a char list by <a
href="https://github.com/tfoutrein"><code>@​tfoutrein</code></a> in <a
href="https://redirect.github.com/python-poetry/tomlkit/pull/489">python-poetry/tomlkit#489</a></li>
<li>reject surrogate code points in \U unicode escapes by <a
href="https://github.com/netliomax25-code"><code>@​netliomax25-code</code></a>
in <a
href="https://redirect.github.com/python-poetry/tomlkit/pull/493">python-poetry/tomlkit#493</a></li>
<li>[pre-commit.ci] pre-commit autoupdate by <a
href="https://github.com/pre-commit-ci"><code>@​pre-commit-ci</code></a>[bot]
in <a
href="https://redirect.github.com/python-poetry/tomlkit/pull/496">python-poetry/tomlkit#496</a></li>
<li>Scan character runs in bulk while parsing by <a
href="https://github.com/tfoutrein"><code>@​tfoutrein</code></a> in <a
href="https://redirect.github.com/python-poetry/tomlkit/pull/490">python-poetry/tomlkit#490</a></li>
<li>Fix doubled comma when inserting into a comma-first array by <a
href="https://github.com/binggao1230"><code>@​binggao1230</code></a> in
<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/499">python-poetry/tomlkit#499</a></li>
<li>reject tab characters in bare keys by <a
href="https://github.com/netliomax25-code"><code>@​netliomax25-code</code></a>
in <a
href="https://redirect.github.com/python-poetry/tomlkit/pull/497">python-poetry/tomlkit#497</a></li>
<li>reject non-hex digits in \u and \U escapes by <a
href="https://github.com/netliomax25-code"><code>@​netliomax25-code</code></a>
in <a
href="https://redirect.github.com/python-poetry/tomlkit/pull/501">python-poetry/tomlkit#501</a></li>
<li>Bulk-scan single-line string bodies by <a
href="https://github.com/tfoutrein"><code>@​tfoutrein</code></a> in <a
href="https://redirect.github.com/python-poetry/tomlkit/pull/491">python-poetry/tomlkit#491</a></li>
<li>Remove the internal TOMLChar wrapper by <a
href="https://github.com/tfoutrein"><code>@​tfoutrein</code></a> in <a
href="https://redirect.github.com/python-poetry/tomlkit/pull/492">python-poetry/tomlkit#492</a></li>
<li>Fix corrupt output when adding to a dotted key inside an inline
table by <a
href="https://github.com/binggao1230"><code>@​binggao1230</code></a> in
<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/500">python-poetry/tomlkit#500</a></li>
<li>Compare StringType members by identity instead of building a set by
<a href="https://github.com/tfoutrein"><code>@​tfoutrein</code></a> in
<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/502">python-poetry/tomlkit#502</a></li>
<li>Merge super tables in place instead of deep-copying on every merge
by <a href="https://github.com/tfoutrein"><code>@​tfoutrein</code></a>
in <a
href="https://redirect.github.com/python-poetry/tomlkit/pull/503">python-poetry/tomlkit#503</a></li>
<li>Move a value replacing a table out of the table region by <a
href="https://github.com/binggao1230"><code>@​binggao1230</code></a> in
<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/506">python-poetry/tomlkit#506</a></li>
<li>Restore dumps() delegating to as_string for non-Mapping wrappers by
<a href="https://github.com/binggao1230"><code>@​binggao1230</code></a>
in <a
href="https://redirect.github.com/python-poetry/tomlkit/pull/508">python-poetry/tomlkit#508</a></li>
<li>Limit parser nesting depth instead of crashing with RecursionError
by <a
href="https://github.com/binggao1230"><code>@​binggao1230</code></a> in
<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/510">python-poetry/tomlkit#510</a></li>
<li>Prefix every line of a multiline comment with # by <a
href="https://github.com/binggao1230"><code>@​binggao1230</code></a> in
<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/511">python-poetry/tomlkit#511</a></li>
<li>Add a native OutOfOrderTableProxy.<strong>contains</strong> by <a
href="https://github.com/tfoutrein"><code>@​tfoutrein</code></a> in <a
href="https://redirect.github.com/python-poetry/tomlkit/pull/515">python-poetry/tomlkit#515</a></li>
<li>Place inline-table separator after the value, not a trailing comment
(fix <a
href="https://redirect.github.com/python-poetry/tomlkit/issues/512">#512</a>)
by <a
href="https://github.com/binggao1230"><code>@​binggao1230</code></a> in
<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/514">python-poetry/tomlkit#514</a></li>
<li>reject a table redefined after its parent table header by <a
href="https://github.com/netliomax25-code"><code>@​netliomax25-code</code></a>
in <a
href="https://redirect.github.com/python-poetry/tomlkit/pull/516">python-poetry/tomlkit#516</a></li>
<li>Don't build a discarded error when an array closes right after a
value by <a
href="https://github.com/tfoutrein"><code>@​tfoutrein</code></a> in <a
href="https://redirect.github.com/python-poetry/tomlkit/pull/517">python-poetry/tomlkit#517</a></li>
<li>Validate out-of-order tables incrementally while parsing by <a
href="https://github.com/binggao1230"><code>@​binggao1230</code></a> in
<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/509">python-poetry/tomlkit#509</a></li>
<li>Return a single key from key() for a single-element list (fixes <a
href="https://redirect.github.com/python-poetry/tomlkit/issues/430">#430</a>)
by <a
href="https://github.com/tienvantranspk-tech"><code>@​tienvantranspk-tech</code></a>
in <a
href="https://redirect.github.com/python-poetry/tomlkit/pull/520">python-poetry/tomlkit#520</a></li>
<li>[pre-commit.ci] pre-commit autoupdate by <a
href="https://github.com/pre-commit-ci"><code>@​pre-commit-ci</code></a>[bot]
in <a
href="https://redirect.github.com/python-poetry/tomlkit/pull/522">python-poetry/tomlkit#522</a></li>
<li>Speed up unwrap() by resolving keys from the key map instead of
items() by <a
href="https://github.com/tfoutrein"><code>@​tfoutrein</code></a> in <a
href="https://redirect.github.com/python-poetry/tomlkit/pull/521">python-poetry/tomlkit#521</a></li>
<li>Merge AoT fragments when building an out-of-order table proxy by <a
href="https://github.com/binggao1230"><code>@​binggao1230</code></a> in
<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/507">python-poetry/tomlkit#507</a></li>
<li>Bulk-scan multiline string bodies by <a
href="https://github.com/tfoutrein"><code>@​tfoutrein</code></a> in <a
href="https://redirect.github.com/python-poetry/tomlkit/pull/518">python-poetry/tomlkit#518</a></li>
<li>reject array-of-tables header missing its second closing bracket by
<a
href="https://github.com/netliomax25-code"><code>@​netliomax25-code</code></a>
in <a
href="https://redirect.github.com/python-poetry/tomlkit/pull/519">python-poetry/tomlkit#519</a></li>
<li>[pre-commit.ci] pre-commit autoupdate by <a
href="https://github.com/pre-commit-ci"><code>@​pre-commit-ci</code></a>[bot]
in <a
href="https://redirect.github.com/python-poetry/tomlkit/pull/541">python-poetry/tomlkit#541</a></li>
<li>Fix ParseError when a sub-table extends an array of tables out of
order by <a
href="https://github.com/sarathfrancis90"><code>@​sarathfrancis90</code></a>
in <a
href="https://redirect.github.com/python-poetry/tomlkit/pull/498">python-poetry/tomlkit#498</a></li>
<li>Render inline tables in O(n) instead of O(n²) by <a
href="https://github.com/tfoutrein"><code>@​tfoutrein</code></a> in <a
href="https://redirect.github.com/python-poetry/tomlkit/pull/525">python-poetry/tomlkit#525</a></li>
<li>Fix duplicated prefix and captured sibling when replacing a dotted
key with a table by <a
href="https://github.com/Labib-Bin-Salam"><code>@​Labib-Bin-Salam</code></a>
in <a
href="https://redirect.github.com/python-poetry/tomlkit/pull/526">python-poetry/tomlkit#526</a></li>
<li>Reject tables inserted into inline tables by <a
href="https://github.com/binggao1230"><code>@​binggao1230</code></a> in
<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/532">python-poetry/tomlkit#532</a></li>
<li>raise on malformed array element instead of dropping it by <a
href="https://github.com/netliomax25-code"><code>@​netliomax25-code</code></a>
in <a
href="https://redirect.github.com/python-poetry/tomlkit/pull/527">python-poetry/tomlkit#527</a></li>
<li>fix: reject out-of-order concrete+super table redefinitions at parse
time by <a
href="https://github.com/binggao1230"><code>@​binggao1230</code></a> in
<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/530">python-poetry/tomlkit#530</a></li>
<li>fix: keep newline after dotted inline table by <a
href="https://github.com/binggao1230"><code>@​binggao1230</code></a> in
<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/533">python-poetry/tomlkit#533</a></li>
<li>[pre-commit.ci] pre-commit autoupdate by <a
href="https://github.com/pre-commit-ci"><code>@​pre-commit-ci</code></a>[bot]
in <a
href="https://redirect.github.com/python-poetry/tomlkit/pull/548">python-poetry/tomlkit#548</a></li>
<li>chore(deps): bump soupsieve from 2.5 to 2.8.4 in /docs by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/python-poetry/tomlkit/pull/560">python-poetry/tomlkit#560</a></li>
<li>chore(deps-dev): bump soupsieve from 2.4.1 to 2.8.4 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/python-poetry/tomlkit/pull/559">python-poetry/tomlkit#559</a></li>
<li>Preserve whitespace when replacing super tables by <a
href="https://github.com/binggao1230"><code>@​binggao1230</code></a> in
<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/534">python-poetry/tomlkit#534</a></li>
<li>Preserve table display names on self assignment by <a
href="https://github.com/binggao1230"><code>@​binggao1230</code></a> in
<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/537">python-poetry/tomlkit#537</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/python-poetry/tomlkit/blob/master/CHANGELOG.md">tomlkit's
changelog</a>.</em></p>
<blockquote>
<h2>[0.15.2] - 2026-10-16</h2>
<h3>Changed</h3>
<ul>
<li>Write the ESC control character as <code>\^[</code> instead of
<code>\e</code>, which is only valid in TOML 1.1, so the output stays
readable by TOML 1.0 parsers such as <code>tomllib</code>. (<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/641">#641</a>)</li>
<li><code>key_value()</code> now raises <code>UnexpectedCharError</code>
on anything other than whitespace or a comment after the pair, instead
of silently discarding it (e.g. <code>key_value(&quot;a = 1 b =
2&quot;)</code>), matching <code>parse()</code>. (<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/594">#594</a>)</li>
<li><code>integer()</code> given a string now validates it against the
TOML integer grammar and keeps the original text, so grouping
underscores (e.g. <code>integer(&quot;1_000&quot;)</code>) survive
<code>dumps()</code>; strings that are not valid TOML integers (e.g.
<code>&quot;010&quot;</code>) now raise <code>ValueError</code>. (<a
href="https://redirect.github.com/python-poetry/tomlkit/issues/336">#336</a>)</li>
<li>Add a <code>fold</code> argument to <code>DateTime</code> and
<code>Time</code>, mirroring the stdlib, and carry <code>fold</code>
through <code>item()</code>, arithmetic (including datetime subtraction)
and <code>unwrap()</code>, so a folded local time no longer converts an
hour off. (<a
href="https://redirect.github.com/python-poetry/tomlkit/issues/619">#619</a>,
<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/623">#623</a>,
<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/626">#626</a>)</li>
<li>Declare the project metadata in the PEP 621 <code>[project]</code>
table; building from source now requires
<code>poetry-core&gt;=2.2.0</code>. (<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/607">#607</a>,
<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/609">#609</a>)</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>Fix invalid output after deleting the last key under a dotted key
inside an inline table; the emptied table now renders as <code>b =
{}</code>. (<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/664">#664</a>)</li>
<li>Fix valid TOML being rejected when an out-of-order table reopens an
implicit super-table with a dotted key: <code>[a.b.c]</code> then
<code>[a]</code> with <code>b.z = 1</code> extends the implicit
<code>a.b</code> super-table rather than redefining it (stdlib
<code>tomllib</code> accepts it), so it now parses and round-trips
instead of raising <code>Redefinition of an existing table</code>. The
concrete-table case (<code>[a.b]</code> then <code>[a]</code> <code>b.z
= 1</code>) stays rejected. (<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/565">#565</a>)</li>
<li>Fix uppercase <code>E</code> exponent after a leading-zero mantissa
(e.g. <code>0E2</code>) being rejected as an invalid number while
<code>0e2</code> parsed fine. (<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/586">#586</a>)</li>
<li>Fix non-lowercase special floats (e.g. <code>Inf</code>,
<code>NaN</code>, <code>-INF</code>) being accepted; TOML only allows
lowercase <code>inf</code> and <code>nan</code>, so they now raise
<code>ParseError</code>. (<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/628">#628</a>)</li>
<li>Fix parse errors reporting the wrong line and column in documents
with CRLF or mixed line endings. (<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/642">#642</a>)</li>
<li>Fix <code>item()</code> reordering the keys of an inline table
(dict-valued keys were forced last) under the default
<code>sort_keys=False</code>. (<a
href="https://redirect.github.com/python-poetry/tomlkit/issues/546">#546</a>)</li>
<li>Fix <code>unwrap()</code> moving a key to the end after its value
was replaced (e.g. <code>doc[&quot;b&quot;] = 9</code>), while
<code>dumps()</code> and <code>keys()</code> kept the original order.
(<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/591">#591</a>)</li>
<li>Fix appending a key to a parsed inline table that uses <code>&quot;,
&quot;</code> separators emitting a bare <code>&quot;,&quot;</code> for
the new entry, leaving the table inconsistently spaced (e.g. <code>{x =
1, y = 2,z = 3}</code>). (<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/595">#595</a>)</li>
<li>Fix an emptied array of tables being dropped from the output: it now
renders as <code>key = []</code>, placed and keyed relative to the
nearest table header so it parses back into the same table. (<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/567">#567</a>)</li>
<li>Fix a single-line array whose last element is a trailing comment
(e.g. from <code>add_line(value, comment=...)</code>) rendering its
closing <code>]</code> on the comment line, producing unparseable
output. (<a
href="https://redirect.github.com/python-poetry/tomlkit/issues/580">#580</a>)</li>
<li>Fix <code>del array[start:stop:step]</code> with a negative or
omitted bound removing the wrong elements from the rendered output. (<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/599">#599</a>)</li>
<li>Fix array slice assignment mutating the array before raising
<code>ValueError(&quot;slice assignment is not supported&quot;)</code>.
(<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/600">#600</a>)</li>
<li>Fix <code>String.__add__</code> splicing the appended text into a
basic string without escaping it, so appending a quote or backslash
produced invalid TOML. (<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/612">#612</a>)</li>
<li>Fix a bare carriage return in a multiline string producing invalid
TOML: it is now escaped as <code>\r</code> in a multiline basic string
and rejected with <code>InvalidStringError</code> in a multiline literal
string; CRLF line endings are left intact. (<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/539">#539</a>)</li>
<li>Fix a tz-aware <code>datetime.time</code> rendering with a UTC
offset (e.g. <code>07:32:00+02:00</code>), which TOML local times do not
allow; it now renders as a local time. (<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/613">#613</a>)</li>
<li>Fix arithmetic on a signed float producing <code>+-0.0</code> (e.g.
<code>-1.5</code> times <code>0</code>), which does not parse. (<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/629">#629</a>)</li>
<li>Fix two <code>Bool</code> items never comparing equal to each other;
they now compare by value. (<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/660">#660</a>)</li>
</ul>
<h2>[0.15.1] - 2026-07-17</h2>
<h3>Changed</h3>
<ul>
<li>Speed up membership tests (<code>key in ...</code>) on
<code>Container</code>, <code>Table</code> and <code>InlineTable</code>
with native <code>__contains__</code> implementations, avoiding the
inherited <code>MutableMapping</code> round-trip through
<code>__getitem__</code> (which resolves the value and builds an
exception on every absent key). (<a
href="https://redirect.github.com/python-poetry/tomlkit/issues/483">#483</a>)</li>
<li>Speed up parsing by making <code>Source</code> index-based: it now
tracks an integer position over the input string instead of
materializing a list of <code>(index, char)</code> tuples up front, so
construction is O(1) and state save/restore no longer copies an
iterator. (<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/489">#489</a>)</li>
<li>Speed up parsing by scanning character runs in bulk:
<code>Source.advance_while</code>/<code>advance_until</code> consume a
whole run of whitespace, bare-key or number characters in a single pass
over the input string instead of one <code>inc()</code> call per
character. (<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/490">#490</a>)</li>
<li>Speed up parsing of single-line strings by bulk-appending the run of
ordinary characters up to the next delimiter, backslash or control
character in one pass, instead of one character at a time. (<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/491">#491</a>)</li>
<li>Speed up parsing by removing the internal <code>TOMLChar</code>
wrapper: the parser now reads plain <code>str</code> characters from
<code>Source</code> and detects end-of-input positionally, avoiding a
per-character object construction and method dispatch. (<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/492">#492</a>)</li>
<li>Speed up parsing by comparing <code>StringType</code> members by
identity (<code>is</code>) instead of building a set on every
<code>is_basic</code>/<code>is_literal</code>/<code>is_singleline</code>/<code>is_multiline</code>
call, avoiding millions of enum hashes while parsing. (<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/502">#502</a>)</li>
<li>Speed up merging super tables by merging in place instead of
deep-copying the growing target on every merge, turning the parse of
documents with many subtables under a shared super table (e.g.
consecutive <code>[a.b.c]</code> / <code>[a.b.d]</code> headers) from
O(n²) into O(n). (<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/503">#503</a>)</li>
<li>Speed up membership tests (<code>key in ...</code>) on out-of-order
tables with a native <code>OutOfOrderTableProxy.__contains__</code>,
completing <a
href="https://redirect.github.com/python-poetry/tomlkit/issues/483">#483</a>
for the last mapping type that still inherited the slow
<code>MutableMapping</code> mixin (which resolves the value and builds
an exception on every absent key). (<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/515">#515</a>)</li>
<li>Speed up parsing documents with many dotted keys or table headers
sharing a prefix by validating out-of-order tables incrementally: each
new fragment is merged into a cached validation container once, instead
of re-merging (and deep-copying) every earlier fragment on each append,
turning a super-cubic worst case into linear time (80 shared-prefix
dotted keys: ~8 s → ~10 ms). (<a
href="https://redirect.github.com/python-poetry/tomlkit/issues/479">#479</a>)</li>
<li>Speed up parsing of arrays that close right after a value (e.g. the
<code>files = [...]</code> blocks that dominate lock files): the parser
no longer attempts to read a value while sitting on the closing
<code>]</code>, which previously built an
<code>UnexpectedCharError</code> just to discard it — and constructing
that exception eagerly computes a line/column by scanning the whole
document, making it O(document size) per such array. (<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/517">#517</a>)</li>
<li>Speed up parsing of multiline strings by bulk-appending the run of
ordinary characters — across raw line feeds and tabs — up to the next
delimiter, backslash, carriage return or control character, instead of
one character at a time. This extends to
<code>&quot;&quot;&quot;</code>/<code>'''</code> bodies the single-line
fast path added in <a
href="https://redirect.github.com/python-poetry/tomlkit/pull/491">#491</a>;
a <code>\r</code> still stops the scan so <code>\r\n</code> stays
validated and byte-for-byte preserved. (<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/518">#518</a>)</li>
<li>Speed up <code>unwrap()</code> (converting a parsed document to a
plain <code>dict</code>) by resolving each key directly from the
container's key map instead of iterating the inherited
<code>MutableMapping</code> view, which rebuilt a <code>SingleKey</code>
from the bare string for every key just to re-look-up the value.
Out-of-order tables still resolve through their proxy, so their
validation is unchanged. (<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/521">#521</a>)</li>
<li>Speed up rendering (<code>as_string()</code> / <code>dumps()</code>)
of inline tables with many keys by precomputing the last-key and
last-deleted-element indices in a single pass, instead of rescanning the
remaining body on every separator comma — turning an O(n²) render into
O(n). (<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/525">#525</a>)</li>
<li>Raise on malformed array element instead of dropping it, (<a
href="https://redirect.github.com/python-poetry/tomlkit/pull/527">#527</a>)</li>
</ul>
<h3>Fixed</h3>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/python-poetry/tomlkit/commit/a0b15ebb09167ede584fc36ad5362fc3039b0530"><code>a0b15eb</code></a>
chore: release 0.15.2 (<a
href="https://redirect.github.com/python-poetry/tomlkit/issues/668">#668</a>)</li>
<li><a
href="https://github.com/python-poetry/tomlkit/commit/18e7f98252f18db5c973435453cd25e1c7bd4c61"><code>18e7f98</code></a>
Compare Bool items by value (<a
href="https://redirect.github.com/python-poetry/tomlkit/issues/660">#660</a>)</li>
<li><a
href="https://github.com/python-poetry/tomlkit/commit/19edc23b0244e1546abbf3b7890c3d8a0deeaf81"><code>19edc23</code></a>
[pre-commit.ci] pre-commit autoupdate (<a
href="https://redirect.github.com/python-poetry/tomlkit/issues/654">#654</a>)</li>
<li><a
href="https://github.com/python-poetry/tomlkit/commit/6b5f079099d4bd77b442f4fae96a10790ba3d55c"><code>6b5f079</code></a>
Render an emptied array of tables as an empty array (<a
href="https://redirect.github.com/python-poetry/tomlkit/issues/567">#567</a>)</li>
<li><a
href="https://github.com/python-poetry/tomlkit/commit/229ee8660872df482a56c93c83b14ac98fedf864"><code>229ee86</code></a>
fix: don't reject an out-of-order super-table extended by a dotted key
(<a
href="https://redirect.github.com/python-poetry/tomlkit/issues/565">#565</a>)</li>
<li><a
href="https://github.com/python-poetry/tomlkit/commit/096148f8947adbfbae7b36bce356a3da7fc1dbf1"><code>096148f</code></a>
escape or reject a bare carriage return in multiline strings (<a
href="https://redirect.github.com/python-poetry/tomlkit/issues/539">#539</a>)</li>
<li><a
href="https://github.com/python-poetry/tomlkit/commit/5fe4329fee7943d2376104e5977f3e3baa6d6abd"><code>5fe4329</code></a>
test: add coverage for tomlkit._types wrapper operators (<a
href="https://redirect.github.com/python-poetry/tomlkit/issues/570">#570</a>)</li>
<li><a
href="https://github.com/python-poetry/tomlkit/commit/2279e18aacb8504a3d153ea623ad6f3edcf15cfe"><code>2279e18</code></a>
Enable intersphinx so stdlib references resolve (<a
href="https://redirect.github.com/python-poetry/tomlkit/issues/624">#624</a>)</li>
<li><a
href="https://github.com/python-poetry/tomlkit/commit/a963fe16d67afaa5293a2c21cfaf9bba666d5647"><code>a963fe1</code></a>
Preserve inline table key order in item() (<a
href="https://redirect.github.com/python-poetry/tomlkit/issues/546">#546</a>)
(<a
href="https://redirect.github.com/python-poetry/tomlkit/issues/552">#552</a>)</li>
<li><a
href="https://github.com/python-poetry/tomlkit/commit/446d6fab132ef38a2ec052a5b2124e04b427dea6"><code>446d6fa</code></a>
Reject non-lowercase special float literals (<a
href="https://redirect.github.com/python-poetry/tomlkit/issues/628">#628</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/python-poetry/tomlkit/compare/0.15.0...0.15.2">compare
view</a></li>
</ul>
</details>
<br />


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-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

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)


</details>
<!-- devin-review-badge-begin -->

---

<a href="https://app.devin.ai/review/headroomlabs-ai/headroom/pull/4653"
target="_blank"><picture><source media="(prefers-color-scheme: dark)"
srcset="https://static.devin.ai/assets/gh-devin-review-dark.svg?v=4"><img
src="https://static.devin.ai/assets/gh-devin-review-light.svg?v=4"
alt="Devin Review"></picture></a>
<!-- devin-review-badge-end -->

### Dependency justification and maintainer qualification

tomlkit remains the existing python-poetry parser used for
loss-minimizing configuration recovery. This official project release
supplies the inline-table serialization fixes reproduced below; the
minimum is needed to exclude known-broken versions for these supported
recovery inputs. The official PyPI metadata identifies the same
python-poetry/tomlkit repository, Python >=3.9, no runtime dependencies,
and a universal py3-none-any wheel. No new native compiler/runtime or
network dependency is added by that wheel. Source installations use the
upstream poetry-core>=2.2.0 build backend and may fetch build
dependencies from the configured index; the offline recovery path itself
makes no provider/network call. PyPI lists no reported vulnerabilities
for this release at review time; this is metadata evidence, not a
comprehensive security audit. Upstream release history and release notes
show continuing maintenance; no change of dependency project is
proposed.

The new minimum fixes demonstrated Headroom config corruption: public
recover_codex_home() with tomlkit 0.15.0 produces invalid TOML when
merging dotted keys in inline tables and when removing a managed
Headroom provider from the middle of an inline table. With 0.15.2 both
cases serialize valid TOML and preserve intended values; a third
comment-preservation control passes on both versions. Production
recovery source is identical to current upstream main; the comparison
changes only the installed tomlkit version. All 53 focused
recovery/config/Gemini tests pass, with two platform skips. The scoped
generated lock updates only the tomlkit package and its root
requirement; uv 0.13.6 lock --check passes and frozen export selects
tomlkit==0.15.2. The additional shared Gemini streamed-request fixture
repair is test-only and addresses independently verified main failures.
No contributor production logic was changed.

### Real behavior proof

Windows, Python 3.12, isolated checkout at
`65bfda5fc658a399b23ededcb7c02502ebb56fa7`, real temporary source/target
Codex homes, no mocks or live Codex account. Install tomlkit 0.15.2 into
a separate directory (`uv pip install --target
ABSOLUTE_DEPENDENCY_DIRECTORY tomlkit==0.15.2`), save the program below,
then run `python recovery_runtime.py ABSOLUTE_CHECKOUT_PATH
ABSOLUTE_DEPENDENCY_DIRECTORY`. Replace its owned scratch-root path with
an existing local scratch directory if needed. The baseline run uses the
same recovery source with tomlkit 0.15.0 and omits the third argument.
Every passing case checks backup creation and unchanged source config.
This qualifies real filesystem recovery/serialization; live Codex,
provider authentication, macOS/Linux recovery permissions, and every
TOML form are not claimed.

<details><summary>Reproduction program</summary>

```python
import importlib.metadata
import json
import os
from pathlib import Path
import sys
import tempfile
import tomllib

sys.stdout.reconfigure(encoding='utf-8')
sys.path.insert(0,sys.argv[1])
if len(sys.argv)>2:
    sys.path.insert(0,sys.argv[2])
import tomlkit
from headroom.providers.codex.recovery import recover_codex_home

owned=Path('G:/git/headroom/.codex').resolve()
cases=[
    ('inline_merge','profiles = {work.model = "old"}\n','profiles = {work.extra = "kept", work.model = "new"}\n'),
    ('remove_managed_middle','model_provider = "headroom"\nmodel_providers = {company = {base_url = "https://company.test/v1"}, headroom = {base_url = "http://127.0.0.1:8787/v1"}, other = {base_url = "https://other.test/v1"}}\n','preferences = {color = "green"}\n'),
    ('preserve_comments','# user-owned config\nmodel = "old" # model choice\n[profiles.work]\nmodel = "work-old"\n','model = "new"\n[profiles.work]\nmodel = "work-new"\nextra = "retained"\n'),
]
results=[]
with tempfile.TemporaryDirectory(prefix='pr4653-runtime-',dir=owned) as directory:
    root=Path(directory).resolve();assert root.is_relative_to(owned)
    for name,target_text,source_text in cases:
        source=root/name/'source';target=root/name/'target'
        source.mkdir(parents=True);target.mkdir()
        (source/'config.toml').write_text(source_text,encoding='utf-8',newline='\n')
        (target/'config.toml').write_text(target_text,encoding='utf-8',newline='\n')
        os.utime(target/'config.toml',(1700000000,1700000000))
        os.utime(source/'config.toml',(1700000010,1700000010))
        try:
            report=recover_codex_home(source=source,target=target)
            output=(target/'config.toml').read_text(encoding='utf-8')
            parsed=tomllib.loads(output)
            assert (source/'config.toml').read_text(encoding='utf-8')==source_text
            assert report.backup_dir.is_dir()
            if name=='inline_merge':assert parsed['profiles']['work']=={'model':'new','extra':'kept'}
            if name=='remove_managed_middle':
                assert 'headroom' not in parsed['model_providers']
                assert parsed['model_providers']['company']['base_url']=='https://company.test/v1'
                assert parsed['model_providers']['other']['base_url']=='https://other.test/v1'
            if name=='preserve_comments':
                assert '# user-owned config' in output and '# model choice' in output
                assert parsed['model']=='new' and parsed['profiles']['work']=={'model':'work-new','extra':'retained'}
            results.append({'case':name,'ok':True,'serialized':output,'backup_created':True,'source_unchanged':True})
        except Exception as exc:
            results.append({'case':name,'ok':False,'error':str(exc),'error_type':type(exc).__name__})
    print(json.dumps({'tomlkit':tomlkit.__version__,'source':sys.argv[1],'results':results},indent=2))

```
</details>

<details><summary>Observed tomlkit 0.15.2</summary>

```json
{
  "tomlkit": "0.15.2",
  "source": "G:/git/headroom-review4653",
  "results": [
    {
      "case": "inline_merge",
      "ok": true,
      "serialized": "profiles = {work.model = \"new\", work.extra = \"kept\"}\n",
      "backup_created": true,
      "source_unchanged": true
    },
    {
      "case": "remove_managed_middle",
      "ok": true,
      "serialized": "model_providers = {company = {base_url = \"https://company.test/v1\"},  other = {base_url = \"https://other.test/v1\"}}\npreferences = {color = \"green\"}\n",
      "backup_created": true,
      "source_unchanged": true
    },
    {
      "case": "preserve_comments",
      "ok": true,
      "serialized": "# user-owned config\nmodel = \"new\" # model choice\n[profiles.work]\nmodel = \"work-new\"\nextra = \"retained\"\n",
      "backup_created": true,
      "source_unchanged": true
    }
  ]
}

```
</details>

<details><summary>Observed tomlkit 0.15.0 control</summary>

```json
{
  "tomlkit": "0.15.0",
  "source": "G:/git/headroom-review4653",
  "results": [
    {
      "case": "inline_merge",
      "ok": false,
      "error": "Unclosed inline table (at line 1, column 31)",
      "error_type": "TOMLDecodeError"
    },
    {
      "case": "remove_managed_middle",
      "ok": false,
      "error": "Invalid initial character for a key part (at line 1, column 70)",
      "error_type": "TOMLDecodeError"
    },
    {
      "case": "preserve_comments",
      "ok": true,
      "serialized": "# user-owned config\nmodel = \"new\" # model choice\n[profiles.work]\nmodel = \"work-new\"\nextra = \"retained\"\n",
      "backup_created": true,
      "source_unchanged": true
    }
  ]
}

```
</details>

Exact-head hosted CI is pending; current upstream main
e4a60ed72f is included. Nothing merged.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: JerrettDavis <mxjerrett@gmail.com>
This commit is contained in:
dependabot[bot]
2026-11-05 07:29:02 -06:00
committed by GitHub
co-authored by JerrettDavis
parent 8364ebbfab
commit 00d5a5ca61
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ dependencies = [
# future patched one.
"ast-grep-cli>=0.30.0,!=0.44.1",
"pyyaml>=6.0", # omp wrap: parse/merge omp's models.yml registry
"tomlkit>=0.15.0,<1.0", # Loss-minimizing Codex config recovery
"tomlkit>=0.15.2,<1.0", # Loss-minimizing Codex config recovery
# Verify upstream TLS through the OS trust store (macOS Keychain, Windows
# cert store), where IT installs corporate TLS-inspection roots (Zscaler,
# Netskope). Pure Python, no deps; the same library pip uses by default.
Generated
+4 -4
View File
@@ -1801,7 +1801,7 @@ requires-dist = [
{ name = "starlette", marker = "extra == 'mcp'", specifier = ">=0.27.0" },
{ name = "strands-agents", marker = "extra == 'strands'", specifier = ">=0.1.0" },
{ name = "tiktoken", specifier = ">=0.5.0" },
{ name = "tomlkit", specifier = ">=0.15.0,<1.0" },
{ name = "tomlkit", specifier = ">=0.15.2,<1.0" },
{ name = "torch", marker = "sys_platform == 'darwin' and extra == 'pytorch-mps'", specifier = ">=2.12.1" },
{ name = "torch", marker = "(platform_machine != 'x86_64' and extra == 'ml') or (sys_platform != 'darwin' and extra == 'ml')", specifier = ">=2.12.1" },
{ name = "torch", marker = "(platform_machine != 'x86_64' and extra == 'voice') or (sys_platform != 'darwin' and extra == 'voice')", specifier = ">=2.12.1" },
@@ -5635,11 +5635,11 @@ wheels = [
[[package]]
name = "tomlkit"
version = "0.15.0"
version = "0.15.2"
source = { registry = "https://pypi.org/simple/" }
sdist = { url = "https://files.pythonhosted.org/packages/51/db/03eaf4331631ef6b27d6e3c9b68c54dc6f0d63d87201fed600cc409307fd/tomlkit-0.15.0.tar.gz", hash = "sha256:7d1a9ecba3086638211b13814ea79c90dd54dd11993564376f3aa92271f5c7a3", size = 161875, upload-time = "2026-05-10T07:38:22.245Z" }
sdist = { url = "https://files.pythonhosted.org/packages/08/72/fc01563df95c189a9f65850096bdc205bc2fe37da6c740cd64afaf18d07e/tomlkit-0.15.2.tar.gz", hash = "sha256:83e32755ba1d20d9340bd069ee97e9f6232ba2346b63ffcba425de01f7e327a6", size = 190522, upload-time = "2026-10-16T04:07:08.166Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/6a/43/8bd850ee71a191bf072e31302c73a66be413fecdd98fdcd111ecbcce13ca/tomlkit-0.15.0-py3-none-any.whl", hash = "sha256:4dbc8f0fc024412b57ced8757ac7461305126a648ff8c2c807fcb8e133a78738", size = 41328, upload-time = "2026-05-10T07:38:23.517Z" },
{ url = "https://files.pythonhosted.org/packages/da/46/7d84138a60a8bd796825b2d38ebe92d0d16501ca57d501b7c5d677401bbc/tomlkit-0.15.2-py3-none-any.whl", hash = "sha256:05562412163a3037b94497385fb7f9204c637bc605af7a48199e41cf2272f437", size = 52225, upload-time = "2026-10-16T04:07:09.216Z" },
]
[[package]]