bearomorphism opened a new pull request, #77530: URL: https://github.com/apache/airflow/pull/77530
Improve core and Task SDK rendered template serialization types with `object` inputs and recursive `JsonValue` outputs. Share protocol-based TypeGuards through `shared/serialization`, preserving existing static callable checks without adding a runtime SDK dependency in core. Preserve serialization, dictionary sorting, Kubernetes scoping, and attribute lookup behavior. The guards check whether an attribute is callable, not whether its signature is compatible or calling it will succeed. Verification: - Focused Breeze tests: SDK **772 passed, 5 skipped**; core template serialization **59 passed**; shared package **1 passed**. - SDK/shared mypy, Ruff, and manual checks passed. - Core mypy reports the same 15 errors on unmodified `main` (`5c4502dec8`) and this branch. Those fixes are isolated in #77529 and are not included here. With user approval, only this known-failing hook was skipped for the push; all other pre-push checks ran. - Broad suites, documentation builds, and performance benchmarks were not run, per the requested scope. --- ##### 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]
