Skip to content
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 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