uranusjr commented on code in PR #28097:
URL: https://github.com/apache/airflow/pull/28097#discussion_r1060221241
##########
airflow/sensors/external_task.py:
##########
@@ -140,21 +140,30 @@ def __init__(
f"`{self.allowed_states}` and failed states
`{self.failed_states}`"
)
- if external_task_id is not None and external_task_ids is not None:
+ if external_task_id and external_task_ids:
Review Comment:
Does `external_task_ids=[]` make sense? If it does, we’d want to keep using
`is not None`.
--
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]