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


##########
airflow/models/baseoperator.py:
##########
@@ -835,7 +835,7 @@ def __init__(
                 f"'{dag.dag_id if dag else ''}.{task_id}'; received 
'{trigger_rule}'."
             )
 
-        self.trigger_rule = TriggerRule(trigger_rule)
+        self.trigger_rule: TriggerRule = TriggerRule(trigger_rule)

Review Comment:
   I think it has something to do with either (or a combination of) Enum having 
a custom metaclass, TriggerRule does multi-inheritance, and one of the parents 
is a built-in.



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