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.
SubscribeRelated
get_type_hintsinclude_extrastyping