diff options
author | Alex Waygood <Alex.Waygood@Gmail.com> | 2023-06-07 06:37:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-07 06:37:02 (GMT) |
commit | d7645124f56c8832a7630a7f76c99e2630e685d7 (patch) | |
tree | e19c816211c7686c3677364d84bfbe5cfdcb2981 | |
parent | 3e7316d7e8969febb56fbc7416d483b073bd1702 (diff) | |
download | cpython-d7645124f56c8832a7630a7f76c99e2630e685d7.zip cpython-d7645124f56c8832a7630a7f76c99e2630e685d7.tar.gz cpython-d7645124f56c8832a7630a7f76c99e2630e685d7.tar.bz2 |
typing docs: Make the PEPs list an expandable section, hidden by default (#105353)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
-rw-r--r-- | Doc/library/typing.rst | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 73e96db..503bef1 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -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 |