8000 docs(typing): harmonize "See PEP x for more details" (GH-97927) · python/cpython@1a84816 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1a84816

Browse files
miss-islingtonsimon04
authored andcommitted
docs(typing): harmonize "See PEP x for more details" (GH-97927)
(cherry picked from commit 0238965) Co-authored-by: Simon Legner <Simon.Legner@gmail.com>
1 parent 77000c8 commit 1a84816

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

Doc/library/typing.rst

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ respectively.
243243

244244
.. versionchanged:: 3.10
245245
``Callable`` now supports :class:`ParamSpec` and :data:`Concatenate`.
246-
See :pep:`612` for more information.
246+
See :pep:`612` for more details.
247247

248248
.. seealso::
249249
The documentation for :class:`ParamSpec` and :class:`Concatenate` provides
@@ -716,7 +716,7 @@ These can be used as types in annotations and do not support ``[]``.
716716
of the ``cls`` parameter.
717717
- Annotating an :meth:`~object.__enter__` method which returns self.
718718

719-
For more information, see :pep:`673`.
719+
See :pep:`673` for more details.
720720

721721
.. versionadded:: 3.11
722722

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

848848
.. versionchanged:: 3.10
849849
``Callable`` now supports :class:`ParamSpec` and :data:`Concatenate`.
850-
See :pep:`612` for more information.
850+
See :pep:`612` for more details.
851851

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

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

10391038
.. versionadded:: 3.11
10401039

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

1188-
``TypeGuard`` also works with type variables. For more information, see
1189-
:pep:`647` (User-Defined Type Guards).
1187+
``TypeGuard`` also works with type variables. See :pep:`647` for more details.
11901188

11911189
.. versionadded:: 3.10
11921190

@@ -1386,7 +1384,7 @@ These are not used in annotations. They are building blocks for creating generic
13861384
to ``call_soon`` match the types of the (positional) arguments of
13871385
``callback``.
13881386

1389-
For more details on type variable tuples, see :pep:`646`.
1387+
See :pep:`646` for more details on type variable tuples.
13901388

13911389
.. versionadded:: 3.11
13921390

@@ -1549,7 +1547,7 @@ These are not used in annotations. They are building blocks for creating generic
15491547

15501548
func(C()) # Passes static type check
15511549

1552-
See :pep:`544` for details. Protocol classes decorated with
1550+
See :pep:`544` for more details. Protocol classes decorated with
15531551
:func:`runtime_checkable` (described later) act as simple-minded runtime
15541552
protocols that check only the presence of given attributes, ignoring their
15551553
type signatures.
@@ -2619,7 +2617,7 @@ Functions and decorators
26192617
def process(response):
26202618
<actual implementation>
26212619

2622-
See :pep:`484` for details and comparison with other typing semantics.
2620+
See :pep:`484` for more details and comparison with other typing semantics.
26232621

26242622
.. versionchanged:: 3.11
26252623
Overloaded functions can now be introspected at runtime using

0 commit comments

Comments
 (0)
0