ephraimbuddy commented on code in PR #38674:
URL: https://github.com/apache/airflow/pull/38674#discussion_r1582607222


##########
airflow/serialization/serialized_objects.py:
##########
@@ -1006,6 +1007,12 @@ def _serialize_node(cls, op: BaseOperator | 
MappedOperator, include_deps: bool)
         # Used to determine if an Operator is inherited from EmptyOperator
         serialize_op["_is_empty"] = op.inherits_from_empty_operator
 
+        if bool(op.start_trigger) ^ bool(op.next_method):

Review Comment:
   ```suggestion
           if not exactly_one(op.start_trigger is not None, op.next_method is 
not None):
   ```
   Just for readability, no strong opinion. exactly_one can be imported here: 
`airflow.utils.helpers` 



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