ferruzzi commented on code in PR #51638:
URL: https://github.com/apache/airflow/pull/51638#discussion_r2141741606
##########
task-sdk/src/airflow/sdk/definitions/deadline.py:
##########
@@ -179,6 +176,18 @@ class DeadlineReference:
deadline.evaluate_with()
"""
+ class TYPES:
+ """Collection of DeadlineReference types for type checking."""
+
+ from airflow.models.deadline import ReferenceModels
Review Comment:
You are correct, I initially had it here so it was only imported for the
type_checking part, but I ended up needing to add that at the module level
anyway for the deserialization. I'll remove it down here. Good catch!
--
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]