Skip to content

Commit a36fb69

Browse files
miss-islingtonAlexWaygoodhugovk
authored
[3.12] typing docs: Make the PEPs list an expandable section, hidden by default (GH-105353) (#105420)
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 ca4649a commit a36fb69

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
@@ -106,6 +111,11 @@ annotations. These include:
106111
* :pep:`698`: Adding an override decorator to typing
107112
*Introducing* the :func:`@override<override>` decorator
108113

114+
.. raw:: html
115+
116+
</details>
117+
<br>
118+
109119
.. _type-aliases:
110120

111121
Type aliases

0 commit comments

Comments
 (0)