From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 7 Jun 2023 06:50:31 +0000 (-0700) Subject: [3.11] typing docs: Make the PEPs list an expandable section, hidden by default ... X-Git-Tag: v3.11.5~323^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=039f30380b7bedafc99293436880a1edcf27f1ec;p=thirdparty%2FPython%2Fcpython.git [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 d7645124f56c8832a7630a7f76c99e2630e685d7) Co-authored-by: Alex Waygood Co-authored-by: Hugo van Kemenade --- diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 6d398eae2932..a7c5143b3d4d 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 @@ -99,6 +104,11 @@ annotations. These include: * :pep:`681`: Data Class Transforms *Introducing* the :func:`@dataclass_transform` decorator +.. raw:: html + +
+
+ .. _type-aliases: Type aliases