Skip to content

[BUG] empty dict in array list will not be parsed #440

@yihengli

Description

@yihengli
a1 = {"a": [{"name": "bob", "kwargs": {}}]}
print(toml.dumps(a1))

What I got

[[a]]
name = "bob"

I am expecting to have

[[a]]
name = "bob"
[[a.kwargs]]

Latest toml and python=3.12

Not sure if this is the intended behavior

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions