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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions