omkar-334 opened a new pull request, #67590: URL: https://github.com/apache/airflow/pull/67590
Third-party names that are only used in type annotations. Every file in this PR already has `from __future__ import annotations`, so those annotations are stored as strings at runtime. The imports never need to be in `sys.modules` to make the code work; they only need to be resolvable for static analysis. No runtime imports were moved inline Related issue - #67515, https://github.com/apache/airflow/pull/67519#issuecomment-4548349352 Each change is the same shape: ```diff -from third_party import RuntimeName, TypeOnlyName +from third_party import RuntimeName if TYPE_CHECKING: + from third_party import TypeOnlyName ``` ## How candidates were picked A small AST pass over `providers/*/src` flagged top-level third-party imports whose every reference falls in an annotation position (function args, returns, `AnnAssign`). --- ##### Was generative AI tooling used to co-author this PR? - [x] Yes Generated-by: Claude Code, 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]
