lazy_annotations
inspect.getfullargspec eagerly evaluates type annotations. To add compatibility with Python 3.14+ deferred evaluation, patch the module-level helper to provide the annotation_format that we are using elsewhere.
def lazy_annotations() - > ContextManager
inspect.getfullargspec eagerly evaluates type annotations. To add compatibility with Python 3.14+ deferred evaluation, patch the module-level helper to provide the annotation_format that we are using elsewhere.
Returns
| Type | Description |
|---|---|
ContextManager | A context manager that temporarily patches the internal inspect module helper to support deferred annotation evaluation. |