]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-92417: `typing` docs: `from __future__ import annotations` can be used in all...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 8 May 2022 15:04:06 +0000 (08:04 -0700)
committerGitHub <noreply@github.com>
Sun, 8 May 2022 15:04:06 +0000 (08:04 -0700)
(cherry picked from commit e5b4bd4d60aaf0292c5b9d628512145b8987b3c6)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Doc/library/typing.rst

index b86c34a6599b4b04274b8f070148c9c62641826c..f3c6a2e07475a8b715753e8dec501bc94910d2a0 100644 (file)
@@ -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