KoviAnusha commented on code in PR #57156:
URL: https://github.com/apache/airflow/pull/57156#discussion_r2458472180
##########
task-sdk/src/airflow/sdk/io/path.py:
##########
@@ -60,6 +60,9 @@ def wrapper(*args, **kwargs):
return wrapper
+ def __iter__(self):
+ return iter(self._obj)
+
Review Comment:
Delegating iteration to self._obj makes it work seamlessly with Python’s
iteration logic. You can also add a short comment/note above explaining why
this delegation is needed, so that it helps people who work on this in the
future.
--
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]