Skip to content

Commit 3618369

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 versions This way, when people get the old documentation link, it will continue to go to the right place. I have looked at the documentation that gets generated locally to see if everything 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 in https://mypy.readthedocs.io/en/stable/common_issues.html#no-errors-reported-for-obviously-wrong-code to link to https://mypy.readthedocs.io/en/stable/command_line.html#no-strict-optional) but the software handles them fine, without getting confused.
1 parent 698e910 commit 3618369

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
def f(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)