Skip to content

Commit 731e844

Browse files
gh-92417: typing docs: from __future__ import annotations can be used in all supported Python versions (GH-92418)
(cherry picked from commit e5b4bd4) Co-authored-by: Alex Waygood <[email protected]>
1 parent 4802344 commit 731e844

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/typing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1944,7 +1944,7 @@ Constant
19441944

19451945
.. note::
19461946

1947-
If ``from __future__ import annotations`` is used in Python 3.7 or later,
1947+
If ``from __future__ import annotations`` is used,
19481948
annotations are not evaluated at function definition time.
19491949
Instead, they are stored as strings in ``__annotations__``.
19501950
This makes it unnecessary to use quotes around the annotation

0 commit comments

Comments
 (0)