Skip to content

Commit

Permalink
add bytes to the chain whitelist
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedh committed Nov 9, 2024
1 parent f40f627 commit f1ad74d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trimesh/iteration.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def chain(*args: Union[Iterable[Any], Any, None]) -> List[Any]:
# extend if it's a sequence, otherwise append
[
chained.extend(a)
if (hasattr(a, "__iter__") and not isinstance(a, str))
if (hasattr(a, "__iter__") and not isinstance(a, (str, bytes)))
else chained.append(a)
for a in args
if a is not None
Expand Down

0 comments on commit f1ad74d

Please sign in to comment.