bearomorphism opened a new pull request, #77529: URL: https://github.com/apache/airflow/pull/77529
Correct SQLAlchemy query annotations and nullable result-key narrowing in core. This resolves 15 mypy errors without changing SQL queries or requested-work execution. - Use the current variadic `Select` annotations so scalar results are inferred as models, not tuples. - Narrow nullable file and bundle names before dictionary insertion; the existing SQL `IN` predicates already exclude null values. - Annotate the dynamically projected primary-key query as `Select`. Verification: - Core mypy, changed-file pre-commit/manual checks, and Ruff passed. - Focused Breeze tests: **92 passed, 2 skipped** (SQLite skips the two competing-claim tests requiring PostgreSQL/MySQL). - Broad suites, docs builds, and performance benchmarks were not run, per the requested scope. This PR contains only the four core query-typing fixes. Template serialization and shared TypeGuards are a separate contribution. --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes: Pi (GPT-6.1-sol) Generated-by: Pi (GPT-6.1-sol) following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) --- Drafted-by: Pi (GPT-6.1-sol) (no human review before posting) -- 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]
