mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
[3.11] typing docs: Make the PEPs list an expandable section, hidden by default (GH-105353) (#105421)
typing docs: Make the PEPs list an expandable section, hidden by default (GH-105353)
(cherry picked from commit d7645124f5
)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
parent
5e4c46f029
commit
039f30380b
1 changed files with 11 additions and 1 deletions
|
@ -59,7 +59,12 @@ Relevant PEPs
|
|||
|
||||
Since the initial introduction of type hints in :pep:`484` and :pep:`483`, a
|
||||
number of PEPs have modified and enhanced Python's framework for type
|
||||
annotations. These include:
|
||||
annotations:
|
||||
|
||||
.. raw:: html
|
||||
|
||||
<details>
|
||||
<summary><a style="cursor:pointer;">The full list of PEPs</a></summary>
|
||||
|
||||
* :pep:`526`: Syntax for Variable Annotations
|
||||
*Introducing* syntax for annotating variables outside of function
|
||||
|
@ -99,6 +104,11 @@ annotations. These include:
|
|||
* :pep:`681`: Data Class Transforms
|
||||
*Introducing* the :func:`@dataclass_transform<dataclass_transform>` decorator
|
||||
|
||||
.. raw:: html
|
||||
|
||||
</details>
|
||||
<br>
|
||||
|
||||
.. _type-aliases:
|
||||
|
||||
Type aliases
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue