Skip to content

Commit 039f303

Browse files
miss-islingtonAlexWaygoodhugovk
authored
[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 d764512) Co-authored-by: Alex Waygood <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
1 parent 5e4c46f commit 039f303

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Doc/library/typing.rst

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,12 @@ Relevant PEPs
5959

6060
Since the initial introduction of type hints in :pep:`484` and :pep:`483`, a
6161
number of PEPs have modified and enhanced Python's framework for type
62-
annotations. These include:
62+
annotations:
63+
64+
.. raw:: html
65+
66+
<details>
67+
<summary><a style="cursor:pointer;">The full list of PEPs</a></summary>
6368

6469
* :pep:`526`: Syntax for Variable Annotations
6570
*Introducing* syntax for annotating variables outside of function
@@ -99,6 +104,11 @@ annotations. These include:
99104
* :pep:`681`: Data Class Transforms
100105
*Introducing* the :func:`@dataclass_transform<dataclass_transform>` decorator
101106

107+
.. raw:: html
108+
109+
</details>
110+
<br>
111+
102112
.. _type-aliases:
103113

104114
Type aliases

0 commit comments

Comments
 (0)