]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-92417: `typing` docs: `from __future__ import annotations` can be used in all...
authorAlex Waygood <Alex.Waygood@Gmail.com>
Sun, 8 May 2022 13:15:38 +0000 (14:15 +0100)
committerGitHub <noreply@github.com>
Sun, 8 May 2022 13:15:38 +0000 (16:15 +0300)
Doc/library/typing.rst

index 005a515234110fe3440f4ba0568dec9ace62be61..1d125fb1ebebb3b4964cefc9b3aee1a46d7edfc8 100644 (file)
@@ -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