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 4802344 commit 731e844Copy full SHA for 731e844
Doc/library/typing.rst
@@ -1944,7 +1944,7 @@ Constant
1944
1945
.. note::
1946
1947
- If ``from __future__ import annotations`` is used in Python 3.7 or later,
+ If ``from __future__ import annotations`` is used,
1948
annotations are not evaluated at function definition time.
1949
Instead, they are stored as strings in ``__annotations__``.
1950
This makes it unnecessary to use quotes around the annotation
0 commit comments