gecko655 commented on code in PR #32850:
URL: https://github.com/apache/airflow/pull/32850#discussion_r1274517227
##########
airflow/utils/helpers.py:
##########
@@ -116,6 +118,9 @@ def handler(signum, frame):
def is_container(obj: Any) -> bool:
"""Test if an object is a container (iterable) but not a string."""
+ if isinstance(obj, Proxy):
+ # unwrap before checking __iter__
Review Comment:
I see. I wrote 2 candidates. Are either of these acceptable?
```suggestion
# To prevent a Proxy from being determined as a container, unwrap
obj before checking __iter__
```
```suggestion
```
--
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]