Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions docs/source/generics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,8 @@ Generic protocols can also be recursive. Example:

result = last(L()) # Inferred type of 'result' is 'int'

.. _generic-type-aliases:

Generic type aliases
********************

Expand Down
3 changes: 2 additions & 1 deletion docs/source/kinds_of_types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,8 @@ assigning the type to a variable:
.. note::

A type alias does not create a new type. It's just a shorthand notation for
another type -- it's equivalent to the target type.
another type -- it's equivalent to the target type except for
:ref:`generic aliases <generic-type-aliases>`.

.. _named-tuples:

Expand Down