Version-Specific Features

Python 3.14 — Deferred annotation evaluation

Ordinary annotations are evaluated on demand instead of at definition time. This permits many forward references without quotation marks, but accessing an unresolved annotation can still fail. Future annotations retain their separate string-based behavior. Requires Python 3.14 or the relevant build; example is not executed locally.

Formal Syntax & Structure

python syntaxpython
def f(x: Later): ...

Return Value

Feature-specific

No single return type; see the example and feature description.

Working Example

Example Snippetpython
def f(x: Later): passclass Later: passprint(f.__annotations__['x'] is Later)
Python Reference