We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 324111d commit 5c0394eCopy full SHA for 5c0394e
docs/source/generics.rst
@@ -653,6 +653,8 @@ Generic protocols can also be recursive. Example:
653
654
result = last(L()) # Inferred type of 'result' is 'int'
655
656
+.. _generic-type-aliases:
657
+
658
Generic type aliases
659
********************
660
docs/source/kinds_of_types.rst
@@ -546,7 +546,8 @@ assigning the type to a variable:
546
.. note::
547
548
A type alias does not create a new type. It's just a shorthand notation for
549
- another type -- it's equivalent to the target type.
+ another type -- it's equivalent to the target type except for
550
+ :ref:`generic aliases <generic-type-aliases>`.
551
552
.. _named-tuples:
553
0 commit comments