Describe the new feature you'd like
Similar to #4035, it would simplify downstream use-cases to have a clear method that indicates if an array uses sharding.
Currently, one can use .shards is not None for regular chunk grids, but must use a try/except for sharded + rectilinear grids since the return type of .shards cannot express rectilinear grids.
See https://hackmd.io/p9pU24IQR6uA9tg6c0wMhw for a full evaluation of the API surface (generated by claude).
Describe the new feature you'd like
Similar to #4035, it would simplify downstream use-cases to have a clear method that indicates if an array uses sharding.
Currently, one can use
.shards is not Nonefor regular chunk grids, but must use atry/exceptfor sharded + rectilinear grids since the return type of.shardscannot express rectilinear grids.See https://hackmd.io/p9pU24IQR6uA9tg6c0wMhw for a full evaluation of the API surface (generated by claude).