Skip to content

Conversation

@quis
Copy link
Member

@quis quis commented Jan 19, 2026

The __annotations__ property will be lazily-evaluated in future versions of Python so isn’t guaranteed to exist.

Recommended approach for Python 3.13 and future compatibility is to use inpect.get_annotations – see https://docs.python.org/3/howto/annotations.html#annotations-quirks

The `__annotations__` property will be lazily-evaluated in future
versions of Python so isn’t guaranteed to exist.

Recommended approach for Python 3.13 and future compatibility is to use
`inpect.get_annotations` – see https://docs.python.org/3/howto/annotations.html#annotations-quirks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants