Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-111681: Fix doctests in typing.rst and remove unused imports #111682

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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Nov 3, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update typing.rst
  • Loading branch information
AlexWaygood authored Nov 3, 2023
commit a4c7b5fb3723248227e7c205b0e80d6047ce970a
4 changes: 3 additions & 1 deletion 4 Doc/library/typing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,9 @@ User-defined generics for parameter expressions are also supported via parameter
specification variables in the form ``[**P]``. The behavior is consistent
with type variables' described above as parameter specification variables are
treated by the typing module as a specialized type variable. The one exception
to this is that a list of types can be used to substitute a :class:`ParamSpec`::
to this is that a list of types can be used to substitute a :class:`ParamSpec`:

.. doctest::

>>> class Z[T, **P]: ... # T is a TypeVar; P is a ParamSpec
...
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.