Description
Documentation
It was correct at the time, but is a bit confusing now:
PEP 563: Postponed Evaluation of Annotations
...
It will become the default in Python 3.10.
https://docs.python.org/3/whatsnew/3.7.html#pep-563-postponed-evaluation-of-annotations
But this is no longer the case as clarified:
from future import annotations was previously scheduled to become mandatory in Python 3.10, but the Python Steering Council twice decided to delay the change (announcement for Python 3.10; announcement for Python 3.11). No final decision has been made yet. See also PEP 563 and PEP 649.
https://docs.python.org/3/library/__future__.html
Confused me as I learned of PEP 563 via the 3.7 "What's new" link being top search result.
I first assumed it wasn't the issue I was seeing as I'm on 3.11, but turns out it was,
and my issue went away when I added __future__
import 😑
Linked PRs
Metadata
Metadata
Assignees
Projects
Status