Skip to content

tomlkit dumps duplicate table #555

Description

@dimbleby
#!/usr/bin/env python3

import tomlkit

doc = tomlkit.loads("[x.y]\n[x]\n")
doc["x"]["k"] = -7

output = tomlkit.dumps(doc)

print(output)

result

[x]
k = -7

[x.y]
[x]

which has too many [x]

Activity

  1. dimbleby commented on Jul 14, 2026

    @dimbleby
    ContributorAuthor

    Just spotted #545, this is likely a duplicate of that

  2. frostming commented on Jul 14, 2026

    @frostming
    Contributor

    @dimbleby please check if it is fixed on main and feel free to close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions