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

Commit3618369

Browse files
Update kinds_of_types.rst: keep old anchor for #no-strict-optional (#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.
1 parent698e910 commit3618369

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎docs/source/kinds_of_types.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ isn't supported by the runtime with some limitations, if you use
294294
deff(x:int|str) ->None:# OK on Python 3.7 and later
295295
...
296296
297+
.. _no-strict-optional:
297298
.. _strict_optional:
298299

299300
Optional types and the None type

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp