Skip to content
masterclass Buddy

Python · Type Alias

Annotated

Annotated attaches metadata to an existing type. Type checkers can use the type, while other tools can inspect the metadata.

Last updated

Since
3.9

Syntax

Annotated[T, x]

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • get_type_hints
  • include_extras
  • typing

Source: typing — Support for type hints — Python 3.15.2 documentation. Checked 2026-11-03.