summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-05-08 15:04:06 (GMT)
committerGitHub <noreply@github.com>2022-05-08 15:04:06 (GMT)
commit731e844b1779e8251b2b4084275f5b166554fe8a (patch)
tree21cd6b3e6ca097c3568f73e70f6164d975d9e524 /Doc
parent480234488cb61fc93a67ad257fe347adc3e9edaa (diff)
downloadcpython-731e844b1779e8251b2b4084275f5b166554fe8a.zip
cpython-731e844b1779e8251b2b4084275f5b166554fe8a.tar.gz
cpython-731e844b1779e8251b2b4084275f5b166554fe8a.tar.bz2
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@Gmail.com>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/typing.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index b86c34a..f3c6a2e 100644
--- a/Doc/library/typing.rst
+++ b/Doc/library/typing.rst
@@ -1944,7 +1944,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