Skip to content

Commit 87fb470

Browse files
authored
[docs] fix broken markup in type_narrowing.rst (#18028)
[Here](https://mypy.readthedocs.io/en/stable/type_narrowing.html#typeis), the markup is broken: ![Screenshot from 2024-10-24 14-46-10](https://github.com/user-attachments/assets/d3b2f6ee-a114-4a2b-b000-49667db50daf) After applying the changes: ![Screenshot from 2024-10-24 14-49-27](https://github.com/user-attachments/assets/2e362f88-5cc1-4e4e-852f-d1917a2d4ede)
1 parent 3420ef1 commit 87fb470

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/source/type_narrowing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,11 +400,11 @@ Mypy supports TypeIs (:pep:`742`).
400400

401401
A `TypeIs narrowing function <https://typing.readthedocs.io/en/latest/spec/narrowing.html#typeis>`_
402402
allows you to define custom type checks that can narrow the type of a variable
403-
in `both the if and else <https://docs.python.org/3.13/library/typing.html#typing.TypeIs>_`
403+
in `both the if and else <https://docs.python.org/3.13/library/typing.html#typing.TypeIs>`_
404404
branches of a conditional, similar to how the built-in isinstance() function works.
405405

406406
TypeIs is new in Python 3.13 — for use in older Python versions, use the backport
407-
from `typing_extensions <https://typing-extensions.readthedocs.io/en/latest/>_`
407+
from `typing_extensions <https://typing-extensions.readthedocs.io/en/latest/>`_
408408

409409
Consider the following example using TypeIs:
410410

0 commit comments

Comments
 (0)