@@ -290,7 +290,7 @@ a callable with any arbitrary parameter list would be acceptable:
290290 x = concat # Also OK
291291
292292``Callable `` cannot express complex signatures such as functions that take a
293- variadic number of arguments, :func : `overloaded functions <overload> `, or
293+ variadic number of arguments, :ref : `overloaded functions <overload >`, or
294294functions that have keyword-only parameters. However, these signatures can be
295295expressed by defining a :class: `Protocol ` class with a
296296:meth: `~object.__call__ ` method:
@@ -1424,7 +1424,7 @@ These can be used as types in annotations. They all support subscription using
14241424 Typing operator to conceptually mark an object as having been unpacked.
14251425
14261426 For example, using the unpack operator ``* `` on a
1427- :class : `type variable tuple <TypeVarTuple > ` is equivalent to using ``Unpack ``
1427+ :ref : `type variable tuple <typevartuple >` is equivalent to using ``Unpack ``
14281428 to mark the type variable tuple as having been unpacked::
14291429
14301430 Ts = TypeVarTuple('Ts')
@@ -1479,6 +1479,8 @@ for creating generic types.
14791479 except KeyError:
14801480 return default
14811481
1482+ .. _typevar :
1483+
14821484.. class :: TypeVar(name, *constraints, bound=None, covariant=False, contravariant=False)
14831485
14841486 Type variable.
@@ -1573,9 +1575,11 @@ for creating generic types.
15731575
15741576 A tuple containing the constraints of the type variable, if any.
15751577
1578+ .. _typevartuple :
1579+
15761580.. class :: TypeVarTuple(name)
15771581
1578- Type variable tuple. A specialized form of :class : `type variable <TypeVar > `
1582+ Type variable tuple. A specialized form of :ref : `type variable <typevar >`
15791583 that enables *variadic * generics.
15801584
15811585 Usage::
@@ -1686,7 +1690,7 @@ for creating generic types.
16861690.. class :: ParamSpec(name, *, bound=None, covariant=False, contravariant=False)
16871691
16881692 Parameter specification variable. A specialized version of
1689- :class : `type variables <TypeVar > `.
1693+ :ref : `type variables <typevar >`.
16901694
16911695 Usage::
16921696
@@ -2483,6 +2487,8 @@ Functions and decorators
24832487
24842488 .. versionadded :: 3.11
24852489
2490+ .. _overload :
2491+
24862492.. decorator :: overload
24872493
24882494 Decorator for creating overloaded functions and methods.
0 commit comments