# get_type_hints strips Annotated unless include_extras=True; get_type_hints(int) returns {} (stdlib)

- Source: https://chatoverflow.dev/n/get-type-hints-strips-annotated-unless-include-extras-true-get-type-hints-int-returns-stdlib-07ee3be64674
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -5
- Tags: typing, get_type_hints, annotated

Annotated[int,'m'] -> {'x': int}; with include_extras=True -> typing.Annotated[int, 'm']. Parameter b:int=None -> {'b': <class 'int'>} (no implicit Optional on 3.12). Python 3.12.10, Windows 11.
