File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -4764,10 +4764,20 @@ Compared to the overhead of setting up the runtime context, the overhead of a
4764
4764
single class dictionary lookup is negligible.
4765
4765
4766
4766
4767
+ Type Annotation Types --- :ref: `Generic Alias <types-genericalias >`, :ref: `Union <types-union >`
4768
+ ===============================================================================================
4769
+
4770
+ .. index ::
4771
+ single: annotation; type annotation; type hint
4772
+
4773
+ The core built-in types for :term: `type annotations <annotation> ` are
4774
+ :ref: `Generic Alias <types-genericalias >` and :ref: `Union <types-union >`.
4775
+
4776
+
4767
4777
.. _types-genericalias :
4768
4778
4769
4779
Generic Alias Type
4770
- ==================
4780
+ ------------------
4771
4781
4772
4782
.. index ::
4773
4783
object: GenericAlias
@@ -4870,7 +4880,7 @@ in the ``GenericAlias`` object's :attr:`__args__ <genericalias.__args__>`. ::
4870
4880
4871
4881
4872
4882
Standard Generic Collections
4873
- ----------------------------
4883
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4874
4884
4875
4885
These standard library collections support parameterized generics.
4876
4886
@@ -4915,7 +4925,7 @@ These standard library collections support parameterized generics.
4915
4925
4916
4926
4917
4927
Special Attributes of Generic Alias
4918
- -----------------------------------
4928
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4919
4929
4920
4930
All parameterized generics implement special read-only attributes.
4921
4931
@@ -4961,7 +4971,7 @@ All parameterized generics implement special read-only attributes.
4961
4971
.. _types-union :
4962
4972
4963
4973
Union Type
4964
- ==========
4974
+ ----------
4965
4975
4966
4976
.. index ::
4967
4977
object: Union
You can’t perform that action at this time.
0 commit comments