From: Alex Waygood Date: Wed, 7 Jun 2023 06:37:02 +0000 (+0100) Subject: typing docs: Make the PEPs list an expandable section, hidden by default (#105353) X-Git-Tag: v3.13.0a1~1859 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d7645124f56c8832a7630a7f76c99e2630e685d7;p=thirdparty%2FPython%2Fcpython.git typing docs: Make the PEPs list an expandable section, hidden by default (#105353) Co-authored-by: Hugo van Kemenade --- diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 73e96db02dc5..503bef137e31 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 + +
+ The full list of PEPs * :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` decorator +.. raw:: html + +
+
+ .. _type-aliases: Type aliases