We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
typing
from __future__ import annotations
1 parent d0d22ca commit a85bdd7Copy full SHA for a85bdd7
Doc/library/typing.rst
@@ -2668,7 +2668,7 @@ Constant
2668
2669
.. note::
2670
2671
- If ``from __future__ import annotations`` is used in Python 3.7 or later,
+ If ``from __future__ import annotations`` is used,
2672
annotations are not evaluated at function definition time.
2673
Instead, they are stored as strings in ``__annotations__``.
2674
This makes it unnecessary to use quotes around the annotation
0 commit comments