Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.10] docs(typing): harmonize "See PEP x for more details" (GH-97927). #98293

Merged
merged 1 commit into from
Oct 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions Doc/library/typing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ respectively.

.. versionchanged:: 3.10
``Callable`` now supports :class:`ParamSpec` and :data:`Concatenate`.
See :pep:`612` for more information.
See :pep:`612` for more details.

.. seealso::
The documentation for :class:`ParamSpec` and :class:`Concatenate` provides
Expand Down Expand Up @@ -725,7 +725,7 @@ These can be used as types in annotations using ``[]``, each having a unique syn

.. versionchanged:: 3.10
``Callable`` now supports :class:`ParamSpec` and :data:`Concatenate`.
See :pep:`612` for more information.
See :pep:`612` for more details.

.. seealso::
The documentation for :class:`ParamSpec` and :class:`Concatenate` provide
Expand Down Expand Up @@ -1050,8 +1050,7 @@ These can be used as types in annotations using ``[]``, each having a unique syn
is not a subtype of the former, since ``List`` is invariant.
The responsibility of writing type-safe type guards is left to the user.

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

.. versionadded:: 3.10

Expand Down Expand Up @@ -1323,7 +1322,7 @@ These are not used in annotations. They are building blocks for creating generic

func(C()) # Passes static type check

See :pep:`544` for details. Protocol classes decorated with
See :pep:`544` for more details. Protocol classes decorated with
:func:`runtime_checkable` (described later) act as simple-minded runtime
protocols that check only the presence of given attributes, ignoring their
type signatures.
Expand Down Expand Up @@ -2127,7 +2126,7 @@ Functions and decorators
def process(response):
<actual implementation>

See :pep:`484` for details and comparison with other typing semantics.
See :pep:`484` for more details and comparison with other typing semantics.

.. decorator:: final

Expand Down