]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
typing docs: Make the PEPs list an expandable section, hidden by default (#105353)
authorAlex Waygood <Alex.Waygood@Gmail.com>
Wed, 7 Jun 2023 06:37:02 +0000 (07:37 +0100)
committerGitHub <noreply@github.com>
Wed, 7 Jun 2023 06:37:02 +0000 (07:37 +0100)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Doc/library/typing.rst

index 73e96db02dc52f9b160c0c01a66d06cc2abd55f3..503bef137e3128e7f54b9eadc35677c5b0547aa6 100644 (file)
@@ -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
@@ -106,6 +111,11 @@ annotations. These include:
 * :pep:`698`: Adding an override decorator to typing
     *Introducing* the :func:`@override<override>` decorator
 
+.. raw:: html
+
+   </details>
+   <br>
+
 .. _type-aliases:
 
 Type aliases