Skip to content

Inconsistent description of strict_optional #21658

Description

@95-martin-orion

Documentation

config_file.html says that "strict_optional {...} effectively disables checking of optional types and None values."

command_line.html says that "--no-strict-optional {...} effectively disables checking of optional types and None values."

Which is correct?

Additionally, the note "strict_optional=False is evil" (alternatively "--no-strict-optional is evil") is not terribly helpful for debugging a system which already uses these settings - a link to further info would be useful.

Activity

  1. A5rocks commented on Jul 1, 2026

    @A5rocks
    Collaborator

    The latter is correct.

  2. added a commit that references this issue on Oct 29, 2026
    f29fc63
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ Proxy