Skip to content

Incorrect rendering of reStructuredText hyperlinks in TypeIs section of Type Narrowing documentation page #18056

@neuroevolutus

Description

@neuroevolutus

Documentation

As stated in the title, a couple of the reStructuredText hyperlinks on the Type Narrowing page are not being correctly converted into HTML. The latter two hyperlinks of the following reStructuredText source are at fault:

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

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions