ferruzzi commented on code in PR #51638:
URL: https://github.com/apache/airflow/pull/51638#discussion_r2180494013
##########
task-sdk/src/airflow/sdk/definitions/deadline.py:
##########
@@ -179,6 +176,27 @@ class DeadlineReference:
deadline.evaluate_with()
"""
+ class TYPES:
+ """Collection of DeadlineReference types for type checking."""
+
+ # Deadlines that should be created when the DagRun is created.
+ DAGRUN_CREATED = tuple(
+ {
+ ReferenceModels.DagRunLogicalDateDeadline,
+ ReferenceModels.FixedDatetimeDeadline,
+ }
+ )
Review Comment:
tuple(set()) enforces unique entries, I did it that was as a safety feature.
--
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]