Skip to content

Commit

Permalink
fix infinite recursion (damn str is sequence)
Browse files Browse the repository at this point in the history
  • Loading branch information
headtr1ck committed Nov 1, 2024
1 parent 101cf51 commit 0384213
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray/core/combine.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def _infer_tile_ids_from_nested_list(
combined_tile_ids : dict[tuple(int, ...), obj]
"""

if isinstance(entry, Sequence):
if not isinstance(entry, str) and isinstance(entry, Sequence):
for i, item in enumerate(entry):
yield from _infer_tile_ids_from_nested_list(item, current_pos + (i,))
else:
Expand Down

0 comments on commit 0384213

Please sign in to comment.