[Python-checkins] gh-92417: `typing` docs: `from __future__ import annotations` can be used in all supported Python versions (GH-92418)

miss-islington webhook-mailer at python.org
Sun May 8 11:04:35 EDT 2022


https://github.com/python/cpython/commit/a85bdd7e025f8b87b88d914f4df8f0b620398ea9
commit: a85bdd7e025f8b87b88d914f4df8f0b620398ea9
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-05-08T08:04:31-07:00
summary:

gh-92417: `typing` docs: `from __future__ import annotations` can be used in all supported Python versions (GH-92418)

(cherry picked from commit e5b4bd4d60aaf0292c5b9d628512145b8987b3c6)

Co-authored-by: Alex Waygood <Alex.Waygood at Gmail.com>

files:
M Doc/library/typing.rst

diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index 005a515234110..1d125fb1ebebb 100644
--- a/Doc/library/typing.rst
+++ b/Doc/library/typing.rst
@@ -2668,7 +2668,7 @@ Constant
 
    .. note::
 
-      If ``from __future__ import annotations`` is used in Python 3.7 or later,
+      If ``from __future__ import annotations`` is used,
       annotations are not evaluated at function definition time.
       Instead, they are stored as strings in ``__annotations__``.
       This makes it unnecessary to use quotes around the annotation



More information about the Python-checkins mailing list