Skip to content

Commit 070c673

Browse files
committed
only support numpy datetime64 in ScalarType
1 parent 2b18ab1 commit 070c673

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/zarr/core/buffer/core.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from __future__ import annotations
22

3-
import datetime
43
import sys
54
from abc import ABC, abstractmethod
65
from typing import (
@@ -107,9 +106,7 @@ def __eq__(self, other: object) -> Self: # type: ignore[explicit-override, over
107106
"""
108107

109108

110-
ScalarType = (
111-
int | float | complex | bytes | str | bool | datetime.datetime | datetime.timedelta | np.generic
112-
)
109+
ScalarType = int | float | complex | bytes | str | bool | np.generic
113110
NDArrayOrScalarLike = ScalarType | NDArrayLike
114111

115112

0 commit comments

Comments
 (0)