potiuk opened a new pull request, #70887: URL: https://github.com/apache/airflow/pull/70887
Cherry-pick of #69202 to `v3-3-test`. `mypy-shared-observability` fails on every PR targeting `v3-3-test`: `datadog_logger.py` passes dogstatsd's `TimedContextManagerDecorator` into `Timer(...)`, whose `real_timer` is typed `Timer | None`. The fix retypes it against a minimal `BackendTimerProtocol` (`start()`/`stop()`), which is what the parameter actually accepts. Type-annotation-only, no runtime change. This unblocks static checks on the branch — e.g. #70855, #70854, #70852. (cherry picked from commit 594604681b2f0a4d2da66d32f13acbd6e2262850) --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes — Claude Code (Opus 5) Generated-by: Claude Code (Opus 5) following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
