mixilchenko commented on code in PR #57156:
URL: https://github.com/apache/airflow/pull/57156#discussion_r2459046517


##########
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:
   Thanks for the review, sending the suggestion
   ```suggestion
       # We need to explicitly implement `__iter__`
       # because otherwise python iteration logic could use `__getitem__`
       def __iter__(self):
           return iter(self._obj)
   
   ```



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