gh-92417: `typing` docs: `from __future__ import annotations` can be used in all supported Python versions (GH-92418)

This commit is contained in:
Alex Waygood 2022-05-08 14:15:38 +01:00 committed by GitHub
parent 45e1721d10
commit e5b4bd4d60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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