Skip to content
Snippets Groups Projects
Unverified Commit 731e844b authored by Miss Islington (bot)'s avatar Miss Islington (bot) 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)

(cherry picked from commit e5b4bd4d)

Co-authored-by: default avatarAlex Waygood <Alex.Waygood@Gmail.com>
parent 48023448
Branches
Tags
No related merge requests found
......@@ -1944,7 +1944,7 @@ Constant
.. 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.
Instead, they are stored as strings in ``__annotations__``.
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