8000 gh-92417: `typing` docs: `from __future__ import annotations` can be … · python/cpython@80ce701 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 80ce701

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 <Alex.Waygood@Gmail.com>
1 parent 731d893 commit 80ce701

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
@@ -2290,7 +2290,7 @@ Constant
22902290

22912291
.. note::
22922292

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

0 commit comments

Comments
 (0)
0