← Back to Pull requests

Update dependency tomlkit to v0.15.2 #58302

Closed
unknown closed this pull request without merging on Oct 16, 2026 18:57 UTC
View on GitHub
unknown unknown commented on Oct 16, 2026 17:01 UTC
Author

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| tomlkit (changelog) | ==0.15.1 → ==0.15.2 | !age | !adoption | !passing | !confidence |

---

[!WARNING]

Some dependencies could not be looked up. Check the [Dependency Dashboard](../issues/33469) for more information.

---

Release Notes

<details>
<summary>python-poetry/tomlkit (tomlkit)</summary>

v0.15.2

Compare Source

##### 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. (#&#8203;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(). (#&#8203;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. (#&#8203;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. (#&#8203;619, #&#8203;623, #&#8203;626)

  • Declare the project metadata in the PEP 621 [project] table; building from source now requires poetry-core>=2.2.0. (#&#8203;607, #&#8203;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. (#&#8203;565)

  • Fix uppercase E exponent after a leading-zero mantissa (e.g. 0E2) being rejected as an invalid number while 0e2 parsed fine. (#&#8203;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. (#&#8203;628)

  • Fix parse errors reporting the wrong line and column in documents with CRLF or mixed line endings. (#&#8203;642)

  • Fix item() reordering the keys of an inline table (dict-valued keys were forced last) under the default sort_keys=False. (#&#8203;546)

  • Fix unwrap() moving a key to the end after its value was replaced (e.g. doc["b"] = 9), while dumps() and keys() kept the original order. (#&#8203;591)

  • Fix appending a key to a parsed inline table that uses ", " separators emitting a bare "," for the new entry, leaving the table inconsistently spaced (e.g. {x = 1, y = 2,z = 3}). (#&#8203;595)

  • Fix an emptied array of tables being dropped from the output: it now renders as key = [], placed and keyed relative to the nearest table header so it parses back into the same table. (#&#8203;567)

  • Fix a single-line array whose last element is a trailing comment (e.g. from add_line(value, comment=...)) rendering its closing ] on the comment line, producing unparseable output. (#&#8203;580)

  • Fix del array[start:stop:step] with a negative or omitted bound removing the wrong elements from the rendered output. (#&#8203;599)

  • Fix array slice assignment mutating the array before raising ValueError("slice assignment is not supported"). (#&#8203;600)

  • Fix String.__add__ splicing the appended text into a basic string without escaping it, so appending a quote or backslash produced invalid TOML. (#&#8203;612)

  • Fix a bare carriage return in a multiline string producing invalid TOML: it is now escaped as \r in a multiline basic string and rejected with InvalidStringError in a multiline literal string; CRLF line endings are left intact. (#&#8203;539)

  • Fix a tz-aware datetime.time rendering with a UTC offset (e.g. 07:32:00+02:00), which TOML local times do not allow; it now renders as a local time. (#&#8203;613)

  • Fix arithmetic on a signed float producing +-0.0 (e.g. -1.5 times 0), which does not parse. (#&#8203;629)

  • Fix two Bool items never comparing equal to each other; they now compare by value. (#&#8203;660)
  • </details>

    ---

    Configuration

    📅 Schedule: (in timezone Europe/Paris)

  • Branch creation

  • - At 12:00 AM through 04:59 AM and 10:00 PM through 11:59 PM, Monday through Friday ( 0-4,22-23 1-5)
    - Only on Sunday and Saturday (
    * 0,6)
  • Automerge

  • - At any time (no schedule defined)

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    ♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.

    ---

    - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

    ---

    This PR was generated by Mend Renovate. View the repository job log.
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xNjQuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjE2NC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJjaGFuZ2Vsb2cvbm8tY2hhbmdlbG9nIiwiZGVwZW5kZW5jaWVzIiwiZGVwZW5kZW5jaWVzLWJhemVsIiwicWEvbm8tY29kZS1jaGFuZ2UiXX0=-->

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: rdesgroppes Review duration: 115m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.388
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #58302"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 52% (MEDIUM) · Higher = larger blast radius
    52%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 20.5% · Safe to merge
    20.5%