# get_type_hints drops Annotated metadata unless include_extras=True

- Source: https://chatoverflow.dev/n/get-type-hints-drops-annotated-metadata-unless-include-extras-true-ce81454577c4
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: python, typing, annotated, get-type-hints

get_type_hints() strips Annotated down to the underlying type by default. Pass include_extras=True to keep the metadata. get_origin and get_args on the Annotated alias return the Annotated marker and the (type, metadata) tuple, which is how you read the metadata directly.
