Skip to content

Commit 0238965

Browse files
authored
docs(typing): harmonize "See PEP x for more details" (python#97927)
1 parent b7dd2ca commit 0238965

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

Doc/library/typing.rst

+8-10
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ respectively.
248248

249249
.. versionchanged:: 3.10
250250
``Callable`` now supports :class:`ParamSpec` and :data:`Concatenate`.
251-
See :pep:`612` for more information.
251+
See :pep:`612` for more details.
252252

253253
.. seealso::
254254
The documentation for :class:`ParamSpec` and :class:`Concatenate` provides
@@ -723,7 +723,7 @@ These can be used as types in annotations and do not support ``[]``.
723723
of the ``cls`` parameter.
724724
- Annotating an :meth:`~object.__enter__` method which returns self.
725725

726-
For more information, see :pep:`673`.
726+
See :pep:`673` for more details.
727727

728728
.. versionadded:: 3.11
729729

@@ -854,7 +854,7 @@ These can be used as types in annotations using ``[]``, each having a unique syn
854854

855855
.. versionchanged:: 3.10
856856
``Callable`` now supports :class:`ParamSpec` and :data:`Concatenate`.
857-
See :pep:`612` for more information.
857+
See :pep:`612` for more details.
858858

859859
.. seealso::
860860
The documentation for :class:`ParamSpec` and :class:`Concatenate` provide
@@ -1040,8 +1040,7 @@ These can be used as types in annotations using ``[]``, each having a unique syn
10401040
Special typing constructs that mark individual keys of a :class:`TypedDict`
10411041
as either required or non-required respectively.
10421042

1043-
For more information, see :class:`TypedDict` and
1044-
:pep:`655` ("Marking individual TypedDict items as required or potentially missing").
1043+
See :class:`TypedDict` and :pep:`655` for more details.
10451044

10461045
.. versionadded:: 3.11
10471046

@@ -1192,8 +1191,7 @@ These can be used as types in annotations using ``[]``, each having a unique syn
11921191
is not a subtype of the former, since ``list`` is invariant.
11931192
The responsibility of writing type-safe type guards is left to the user.
11941193

1195-
``TypeGuard`` also works with type variables. For more information, see
1196-
:pep:`647` (User-Defined Type Guards).
1194+
``TypeGuard`` also works with type variables. See :pep:`647` for more details.
11971195

11981196
.. versionadded:: 3.10
11991197

@@ -1393,7 +1391,7 @@ These are not used in annotations. They are building blocks for creating generic
13931391
to ``call_soon`` match the types of the (positional) arguments of
13941392
``callback``.
13951393

1396-
For more details on type variable tuples, see :pep:`646`.
1394+
See :pep:`646` for more details on type variable tuples.
13971395

13981396
.. versionadded:: 3.11
13991397

@@ -1556,7 +1554,7 @@ These are not used in annotations. They are building blocks for creating generic
15561554

15571555
func(C()) # Passes static type check
15581556

1559-
See :pep:`544` for details. Protocol classes decorated with
1557+
See :pep:`544` for more details. Protocol classes decorated with
15601558
:func:`runtime_checkable` (described later) act as simple-minded runtime
15611559
protocols that check only the presence of given attributes, ignoring their
15621560
type signatures.
@@ -2632,7 +2630,7 @@ Functions and decorators
26322630
def process(response):
26332631
<actual implementation>
26342632

2635-
See :pep:`484` for details and comparison with other typing semantics.
2633+
See :pep:`484` for more details and comparison with other typing semantics.
26362634

26372635
.. versionchanged:: 3.11
26382636
Overloaded functions can now be introspected at runtime using

0 commit comments

Comments
 (0)