Skip to content

Commit 80bd097

Browse files
committed
fix accidental copy + paste breakage
1 parent f608c12 commit 80bd097

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/zarr/core/dtype/npy/structured.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from collections.abc import Sequence
44
from dataclasses import dataclass
5-
from typing import TYPE_CHECKING, Literal, Self, TypeGuard, cast, overload
5+
from typing import TYPE_CHECKING, ClassVar, Literal, Self, TypeGuard, cast, overload
66

77
import numpy as np
88

@@ -103,6 +103,7 @@ class Structured(ZDType[np.dtypes.VoidDType[int], np.void], HasItemSize):
103103
The Zarr V2 data type specification can be found `here <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`_.
104104
"""
105105

106+
_zarr_v3_name: ClassVar[Literal["structured"]] = "structured"
106107
dtype_cls = np.dtypes.VoidDType # type: ignore[assignment]
107108
fields: tuple[tuple[str, ZDType[TBaseDType, TBaseScalar]], ...]
108109

src/zarr/core/dtype/npy/time.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ class TimeDelta64(TimeDTypeBase[np.dtypes.TimeDelta64DType, np.timedelta64], Has
356356
unit: DateTimeUnit = "generic"
357357
scale_factor: int = 1
358358
_zarr_v3_name: ClassVar[Literal["numpy.timedelta64"]] = "numpy.timedelta64"
359-
_zarr_v2_names: tuple[Literal[">m8"], Literal["<m8"]] = (">m8", "<m8")
359+
_zarr_v2_names: ClassVar[tuple[Literal[">m8"], Literal["<m8"]]] = (">m8", "<m8")
360360
_numpy_name: ClassVar[Literal["timedelta64"]] = "timedelta64"
361361

362362
@classmethod
@@ -620,7 +620,7 @@ class DateTime64(TimeDTypeBase[np.dtypes.DateTime64DType, np.datetime64], HasEnd
620620

621621
dtype_cls = np.dtypes.DateTime64DType # type: ignore[assignment]
622622
_zarr_v3_name: ClassVar[Literal["numpy.datetime64"]] = "numpy.datetime64"
623-
_zarr_v2_names: tuple[Literal[">M8"], Literal["<M8"]] = (">M8", "<M8")
623+
_zarr_v2_names: ClassVar[tuple[Literal[">M8"], Literal["<M8"]]] = (">M8", "<M8")
624624
_numpy_name: ClassVar[Literal["datetime64"]] = "datetime64"
625625
unit: DateTimeUnit = "generic"
626626
scale_factor: int = 1

0 commit comments

Comments
 (0)