@@ -665,7 +665,7 @@ through a simple assignment::
665
665
User-defined generics for parameter expressions are also supported via parameter
666
666
specification variables in the form ``[**P] ``. The behavior is consistent
667
667
with type variables' described above as parameter specification variables are
668
- treated by the typing module as a specialized type variable. The one exception
668
+ treated by the :mod: ` ! typing` module as a specialized type variable. The one exception
669
669
to this is that a list of types can be used to substitute a :class: `ParamSpec `::
670
670
671
671
>>> class Z[T, **P]: ... # T is a TypeVar; P is a ParamSpec
@@ -706,7 +706,7 @@ are intended primarily for static type checking.
706
706
707
707
A user-defined generic class can have ABCs as base classes without a metaclass
708
708
conflict. Generic metaclasses are not supported. The outcome of parameterizing
709
- generics is cached, and most types in the typing module are :term: `hashable ` and
709
+ generics is cached, and most types in the :mod: ` ! typing` module are :term: `hashable ` and
710
710
comparable for equality.
711
711
712
712
@@ -2787,7 +2787,7 @@ types.
2787
2787
Protocols
2788
2788
---------
2789
2789
2790
- The following protocols are provided by the typing module. All are decorated
2790
+ The following protocols are provided by the :mod: ` ! typing` module. All are decorated
2791
2791
with :func: `@runtime_checkable <runtime_checkable> `.
2792
2792
2793
2793
.. class :: SupportsAbs
@@ -3531,7 +3531,7 @@ Deprecated aliases
3531
3531
------------------
3532
3532
3533
3533
This module defines several deprecated aliases to pre-existing
3534
- standard library classes. These were originally included in the typing
3534
+ standard library classes. These were originally included in the :mod: ` ! typing`
3535
3535
module in order to support parameterizing these generic classes using ``[] ``.
3536
3536
However, the aliases became redundant in Python 3.9 when the
3537
3537
corresponding pre-existing classes were enhanced to support ``[] `` (see
@@ -3544,7 +3544,7 @@ interpreter for these aliases.
3544
3544
3545
3545
If at some point it is decided to remove these deprecated aliases, a
3546
3546
deprecation warning will be issued by the interpreter for at least two releases
3547
- prior to removal. The aliases are guaranteed to remain in the typing module
3547
+ prior to removal. The aliases are guaranteed to remain in the :mod: ` ! typing` module
3548
3548
without deprecation warnings until at least Python 3.14.
3549
3549
3550
3550
Type checkers are encouraged to flag uses of the deprecated types if the
0 commit comments