Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update Fix help message url for "None and Optional handling" section#19252

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@guywilsonjr
Copy link
Contributor

Fixes#19251

Correct url in help message"None and Optional handling" group
Checklist:

  • Read theContributing Guidelines
  • Add tests for all changed behaviour.
  • If you can't add a test, please explain why and how you verified your changes work.
$ 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...
  • - Make sure CI passes.
  • - Please do not force push to the PR once it has been reviewed.

@A5rocks
Copy link
Collaborator

Maybe it makes more sense to update the docs to support this old anchor, for people on older mypy versions?

@github-actions
Copy link
Contributor

According tomypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

Copy link
Collaborator

@hauntsaninjahauntsaninja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thanks for spotting and fixing! (Open to A5rocks idea in addition!)

@hauntsaninjahauntsaninja merged commitf1b496c intopython:masterJun 8, 2025
19 checks passed
wyattscarpenter added a commit to wyattscarpenter/mypy that referenced this pull requestSep 11, 2025
Not sure if this will work, since something else has the same anchor on a different page... Seepython#19252, though.
hauntsaninja pushed a commit that referenced this pull requestNov 2, 2025
…19828)Addresses#19252 (comment)> support this old anchor, for people on older mypy versionsThis way, when people get the old documentation link, it will continueto go to the right place.I have looked at the documentation that gets generated locally to see ifeverything still works. It does. In our vast panoply of documentation,we now have two very similar refs, `no-strict-optional` and`no_strict_optional` (used inhttps://mypy.readthedocs.io/en/stable/common_issues.html#no-errors-reported-for-obviously-wrong-codeto link tohttps://mypy.readthedocs.io/en/stable/command_line.html#no-strict-optional)but the software handles them fine, without getting confused.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@hauntsaninjahauntsaninjahauntsaninja approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Help message URL incorrect for "None and Optional handling"

3 participants

@guywilsonjr@A5rocks@hauntsaninja

[8]ページ先頭

©2009-2025 Movatter.jp