Skip to content

Commit 2b67db7

Browse files
Apply 'mod' role to typing module (#133201)
Co-authored-by: Adam Turner <[email protected]>
1 parent b451516 commit 2b67db7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Doc/library/typing.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ through a simple assignment::
665665
User-defined generics for parameter expressions are also supported via parameter
666666
specification variables in the form ``[**P]``. The behavior is consistent
667667
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
669669
to this is that a list of types can be used to substitute a :class:`ParamSpec`::
670670

671671
>>> class Z[T, **P]: ... # T is a TypeVar; P is a ParamSpec
@@ -706,7 +706,7 @@ are intended primarily for static type checking.
706706

707707
A user-defined generic class can have ABCs as base classes without a metaclass
708708
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
710710
comparable for equality.
711711

712712

@@ -2787,7 +2787,7 @@ types.
27872787
Protocols
27882788
---------
27892789

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
27912791
with :func:`@runtime_checkable <runtime_checkable>`.
27922792

27932793
.. class:: SupportsAbs
@@ -3531,7 +3531,7 @@ Deprecated aliases
35313531
------------------
35323532

35333533
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`
35353535
module in order to support parameterizing these generic classes using ``[]``.
35363536
However, the aliases became redundant in Python 3.9 when the
35373537
corresponding pre-existing classes were enhanced to support ``[]`` (see
@@ -3544,7 +3544,7 @@ interpreter for these aliases.
35443544

35453545
If at some point it is decided to remove these deprecated aliases, a
35463546
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
35483548
without deprecation warnings until at least Python 3.14.
35493549

35503550
Type checkers are encouraged to flag uses of the deprecated types if the

0 commit comments

Comments
 (0)