Skip to content

Commit e5b4bd4

Browse files
authored
gh-92417: typing docs: from __future__ import annotations can be used in all supported Python versions (GH-92418)
1 parent 45e1721 commit e5b4bd4

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
@@ -2668,7 +2668,7 @@ Constant
26682668

26692669
.. note::
26702670

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

0 commit comments

Comments
 (0)