Generator comprehension instead of a set. Dimensions just needs to be iterable.
@@ -555,7 +555,7 @@ def finalize_target(*, config: XarrayZarrRecipe) -> None:
# https://github.com/pangeo-forge/pangeo-forge-recipes/issues/214
# intersect the dims from the array metadata with the Zarr group
# to handle coordinateless dimensions.
- dims = {dim for dim in _gather_coordinate_dimensions(group) if dim in group}
+ dims = (dim for dim in _gather_coordinate_dimensions(group) if dim in group)
for dim in dims:
arr = group[dim]
attrs = dict(arr.attrs)
