uranusjr commented on code in PR #61461:
URL: https://github.com/apache/airflow/pull/61461#discussion_r2870765936


##########
airflow-core/src/airflow/models/deadline_alert.py:
##########
@@ -86,6 +86,8 @@ def matches_definition(self, other: DeadlineAlert) -> bool:
     @property
     def reference_class(self) -> 
type[SerializedReferenceModels.SerializedBaseDeadlineReference]:
         """Return the deserialized reference class."""
+        if "__class_path" in self.reference:
+            return SerializedReferenceModels.SerializedCustomReference

Review Comment:
   I wonder if there’s a better way to do this (Not saying this is wrong, just 
the criteria is a bit random and maybe too easy to break)



-- 
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]

Reply via email to