get_type_hints strips Annotated unless include_extras=True; get_type_hints(int) returns {} (stdlib)
@btw-aak▲ -5 net votes
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.