From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 12 May 2022 14:42:57 +0000 (-0700) Subject: gh-92436: __future__ docs: add note on expectations for "from __future__ import annot... X-Git-Tag: v3.10.5~58 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5d62759f98e82625277f46ea86a1a29b07b8ffe1;p=thirdparty%2FPython%2Fcpython.git gh-92436: __future__ docs: add note on expectations for "from __future__ import annotations" (GH-92568) (cherry picked from commit 6582c96454ddb731eb412c2a473300172225fdb9) Co-authored-by: Jelle Zijlstra --- diff --git a/Doc/library/__future__.rst b/Doc/library/__future__.rst index 24bbd90d02cf..8bd23daee739 100644 --- a/Doc/library/__future__.rst +++ b/Doc/library/__future__.rst @@ -90,12 +90,20 @@ language using this mechanism: | generator_stop | 3.5.0b1 | 3.7 | :pep:`479`: | | | | | *StopIteration handling inside generators* | +------------------+-------------+--------------+---------------------------------------------+ -| annotations | 3.7.0b1 | 3.11 | :pep:`563`: | +| annotations | 3.7.0b1 | TBD [1]_ | :pep:`563`: | | | | | *Postponed evaluation of annotations* | +------------------+-------------+--------------+---------------------------------------------+ .. XXX Adding a new entry? Remember to update simple_stmts.rst, too. +.. [1] + ``from __future__ import annotations`` was previously scheduled to + become mandatory in Python 3.10, but the Python Steering Council + twice decided to delay the change + (`announcement for Python 3.10 `__; + `announcement for Python 3.11 `__). + No final decision has been made yet. See also :pep:`563` and :pep:`649`. + .. seealso::