Skip to content

Help message URL incorrect for "None and Optional handling" #19251

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
guywilsonjr opened this issue Jun 7, 2025 · 0 comments · Fixed by #19252
Closed

Help message URL incorrect for "None and Optional handling" #19251

guywilsonjr opened this issue Jun 7, 2025 · 0 comments · Fixed by #19252

Comments

@guywilsonjr
Copy link
Contributor

Documentation
This is an issue with command documentation

Running on:

$ python -V
Python 3.13.4

$  mypy -V
mypy 1.16.0 (compiled: yes)

Issue:

$ mypy -h
...
None and Optional handling:
  Adjust how values of type 'None' are handled. For more context on how mypy handles values of type 'None', see: https://mypy.readthedocs.io/en/stable/kinds_of_types.html#no-strict-optional
...

What we should see:

$ mypy -h
...
None and Optional handling:
  Adjust how values of type 'None' are handled. For more context on how mypy handles values of type 'None', see: https://mypy.readthedocs.io/en/stable/kinds_of_types.html#optional-types-and-the-none-type
...

Solution:
Replace no-strict-optional with optional-types-and-the-none-type In the url

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

Successfully merging a pull request may close this issue.

1 participant