Skip to content

Commit 44e78f5

Browse files
committed
fix: use unparametrized types in direct assignment
1 parent e9aff64 commit 44e78f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/zarr/core/dtype/_numpy.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ def from_json_value(self, data: JSON, *, zarr_format: ZarrFormat) -> np.bytes_:
524524

525525
@dataclass(frozen=True, kw_only=True)
526526
class FixedLengthBytes(DTypeWrapper[np.dtypes.VoidDType[Any], np.void]):
527-
dtype_cls = np.dtypes.VoidDType[Any]
527+
dtype_cls = np.dtypes.VoidDType
528528
_zarr_v3_name = "r*"
529529
item_size_bits: ClassVar[int] = 8
530530
length: int = 1
@@ -591,8 +591,8 @@ def from_json_value(self, data: JSON, *, zarr_format: ZarrFormat) -> np.void:
591591

592592
@dataclass(frozen=True, kw_only=True)
593593
class FixedLengthUnicodeString(DTypeWrapper[np.dtypes.StrDType[int], np.str_]):
594-
dtype_cls = np.dtypes.StrDType[int]
595-
_zarr_v3_name = "numpy.static_unicode_string"
594+
dtype_cls = np.dtypes.StrDType
595+
_zarr_v3_name = "numpy.fixed_length_unicode_string"
596596
item_size_bits: ClassVar[int] = 32 # UCS4 is 32 bits per code point
597597
endianness: Endianness | None = "native"
598598
length: int = 1

0 commit comments

Comments
 (0)