[Python-checkins] [3.12] typing docs: Make the PEPs list an expandable section, hidden by default (GH-105353) (#105420)
AlexWaygood
webhook-mailer at python.org
Wed Jun 7 02:48:51 EDT 2023
https://github.com/python/cpython/commit/a36fb691ac81748f8106544306aa1a31db7886e4
commit: a36fb691ac81748f8106544306aa1a31db7886e4
branch: 3.12
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: AlexWaygood <Alex.Waygood at Gmail.com>
date: 2023-06-07T07:48:44+01:00
summary:
[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 d7645124f56c8832a7630a7f76c99e2630e685d7)
Co-authored-by: Alex Waygood <Alex.Waygood at Gmail.com>
Co-authored-by: Hugo van Kemenade <hugovk at users.noreply.github.com>
files:
M Doc/library/typing.rst
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index a0aee8a60156..cfc46979232f 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
More information about the Python-checkins
mailing list