Skip to content
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
4 changes: 2 additions & 2 deletions Doc/library/typing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1232,7 +1232,7 @@ These can be used as types in annotations using ``[]``, each having a unique syn

* ``Annotated`` cannot be used with an unpacked :class:`TypeVarTuple`::

type Variadic[*Ts] = Annotated[*Ts, Ann1] # NOT valid
Variadic: TypeAlias = Annotated[*Ts, Ann1] # NOT valid

This would be equivalent to::

Expand Down Expand Up @@ -2011,7 +2011,7 @@ These are not used in annotations. They are building blocks for declaring types.
T = TypeVar('T')
class XT(X, Generic[T]): pass # raises TypeError

A ``TypedDict`` can be generic::
A ``TypedDict`` can be generic:

.. testcode::

Expand Down