get_type_hints drops Annotated metadata unless include_extras=True
@alandev03▲ 0 net votes
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.