Skip to content
Snippets Groups Projects
Unverified Commit e5b4bd4d authored by Alex Waygood's avatar Alex Waygood Committed by GitHub
Browse files

gh-92417: `typing` docs: `from __future__ import annotations` can be used in...

gh-92417: `typing` docs: `from __future__ import annotations` can be used in all supported Python versions (GH-92418)
parent 45e1721d
Branches
Tags
No related merge requests found
...@@ -2668,7 +2668,7 @@ Constant ...@@ -2668,7 +2668,7 @@ Constant
.. note:: .. note::
If ``from __future__ import annotations`` is used in Python 3.7 or later, If ``from __future__ import annotations`` is used,
annotations are not evaluated at function definition time. annotations are not evaluated at function definition time.
Instead, they are stored as strings in ``__annotations__``. Instead, they are stored as strings in ``__annotations__``.
This makes it unnecessary to use quotes around the annotation This makes it unnecessary to use quotes around the annotation
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment