mirror of
https://github.com/kennethreitz/responder.git
synced 2026-07-21 18:39:29 +00:00
1e97f8f5f7
Python <=3.10's get_type_hints implicitly wraps `x: T = None` in Optional, so `token: Annotated[str, Header(None)] = None` lost its marker behind a Union and was never injected. _annotated_marker now unwraps Union to find the marker. Latent since 5.3 (CI was red on 3.10; local runs were 3.13-only). Adds a cross-version regression test. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>