From 31cec8751a9ee6c23ae4c99cbe7b82a013f6f83e Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Sat, 7 May 2022 12:47:48 +0100 Subject: [PATCH] gh-92417: `typing` docs: `from __future__ import annotations` can be used in all supported Python versions --- Doc/library/typing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 005a515234110f..1d125fb1ebebb3 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