Skip to content

strtobool docs innacurate #93863

@MareoRaft

Description

@MareoRaft

Documentation

The documentation on strtobool says that any value outside of "y", "yes", "t", "true", "on", "1", "n", "no", "f", "false", "off", or "0" will produce a ValueError.

This is not true. The value "True" does not produce a ValueError.

The documentation needs to say that the value is run through .lower() before comparison, or say that the comparison is not case-sensitive.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions