What is PEP 649 and deferred annotations?
New features in Python 3.13 and 3.14
Audio flashcard · 0:18Nortren·
What is PEP 649 and deferred annotations?
0:18
PEP 649 changes how type annotations are evaluated, deferring them by default to avoid the overhead of evaluating annotations at function definition time and to allow forward references without quoting. Annotations become accessible as proxies that evaluate lazily, removing the long-standing need for string-quoted forward references in many cases.
peps.python.org