Rename the `DimensionNames` type to `DimensionNamesLike`. by d-v-b · Pull Request #3800 · zarr-developers/zarr-python

@d-v-b

The reason for this change is the fact that the `DimensionNames` type is does not model the
actual type of the `dimension_names` attribute on the Array V3 Metadata class, but rather a
wider input type that is ultimately narrowed to that actual type. For this reason, it should
use the same `XLike` name convention as the other wide input types that get narrowed to a more
restricted type.

maxrjones

abishop1990 pushed a commit to abishop1990/zarr-python that referenced this pull request

Mar 21, 2026
…opers#3800)

The reason for this change is the fact that the `DimensionNames` type is does not model the
actual type of the `dimension_names` attribute on the Array V3 Metadata class, but rather a
wider input type that is ultimately narrowed to that actual type. For this reason, it should
use the same `XLike` name convention as the other wide input types that get narrowed to a more
restricted type.