@@ -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
@@ -2685,7 +2685,7 @@ types.
2685
2685
Protocols
2686
2686
---------
2687
2687
2688
- The following protocols are provided by the typing module. All are decorated
2688
+ The following protocols are provided by the :mod: ` ! typing` module. All are decorated
2689
2689
with :func: `@runtime_checkable <runtime_checkable> `.
2690
2690
2691
2691
.. class :: SupportsAbs
@@ -3384,7 +3384,7 @@ Deprecated aliases
3384
3384
------------------
3385
3385
3386
3386
This module defines several deprecated aliases to pre-existing
3387
- standard library classes. These were originally included in the typing
3387
+ standard library classes. These were originally included in the :mod: ` ! typing`
3388
3388
module in order to support parameterizing these generic classes using ``[] ``.
3389
3389
However, the aliases became redundant in Python 3.9 when the
3390
3390
corresponding pre-existing classes were enhanced to support ``[] `` (see
@@ -3397,7 +3397,7 @@ interpreter for these aliases.
3397
3397
3398
3398
If at some point it is decided to remove these deprecated aliases, a
3399
3399
deprecation warning will be issued by the interpreter for at least two releases
3400
- prior to removal. The aliases are guaranteed to remain in the typing module
3400
+ prior to removal. The aliases are guaranteed to remain in the :mod: ` ! typing` module
3401
3401
without deprecation warnings until at least Python 3.14.
3402
3402
3403
3403
Type checkers are encouraged to flag uses of the deprecated types if the
0 commit comments