Skip to content

Fix inconsistent strict_optional documentation#21661

Open
BHUVANSH855 wants to merge 1 commit into
python:masterfrom
BHUVANSH855:fix-21658-strict-optional-docs
Open

Fix inconsistent strict_optional documentation#21661
BHUVANSH855 wants to merge 1 commit into
python:masterfrom
BHUVANSH855:fix-21658-strict-optional-docs

Conversation

@BHUVANSH855

Copy link
Copy Markdown

Summary

Fix the inconsistent description of strict_optional in the documentation.

Changes

  • Clarify that strict_optional = true enables checking of optional types and None values.
  • Explain that strict_optional = false disables that checking.
  • Add links from the strict_optional and --no-strict-optional warnings to the "Optional types and the None type" documentation for additional context.

Fixes #21658

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inconsistent description of strict_optional

1 participant