Skip to content

tomlkit.boolean returns True as "false" #442

@vjjda

Description

@vjjda
>>> import tomlkit
...
... # Convert a Python True to its TOML string representation
... toml_true_string = tomlkit.boolean(True).as_string()
... print(f"TOML string for True: {toml_true_string}")
...
... # Convert a Python False to its TOML string representation
... toml_false_string = tomlkit.boolean(False).as_string()
... print(f"TOML string for False: {toml_false_string}")
...
TOML string for True: false
TOML string for False: false

I'm using version 0.13.3.

Name: tomlkit
Version: 0.13.3

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