uranusjr commented on code in PR #33453:
URL: https://github.com/apache/airflow/pull/33453#discussion_r1296742355
##########
tests/sensors/test_external_task_sensor.py:
##########
@@ -1478,7 +1478,7 @@ def dummy_task(x: int):
mode="reschedule",
)
- body = dummy_task.expand(x=[i for i in range(5)])
+ body = dummy_task.expand(x=list(range(5)))
Review Comment:
Actually I don’t think even the `list` is needed, `expand` should be able to
accept `range` since it implements the sequence protocol.
##########
tests/sensors/test_external_task_sensor.py:
##########
@@ -1478,7 +1478,7 @@ def dummy_task(x: int):
mode="reschedule",
)
- body = dummy_task.expand(x=[i for i in range(5)])
+ body = dummy_task.expand(x=list(range(5)))
Review Comment:
Actually I don’t think even the `list` is needed, `expand` should be able to
accept `range` since it implements the sequence protocol.
--
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]