Skip to content

Commit 6032452

Browse files
committed
pre-commit
1 parent cefe87e commit 6032452

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ def _check_native_dtype(cls: type[Self], dtype: TBaseDType) -> TypeGuard[np.dtyp
425425
"""
426426
A type guard that checks if the input is assignable to the type of ``cls.dtype_class``
427427
428-
This method is overridden for this particular data type because of a windows-specific issue where
428+
This method is overridden for this particular data type because of a windows-specific issue where
429429
np.dtype('i') is an instance of ``np.dtypes.IntDType``, not an instance of ``np.dtypes.Int32DType``.
430430
431431
Parameters

tests/test_dtype/test_npy/test_int.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ class TestInt16(BaseTestZDType):
7575
class TestInt32(BaseTestZDType):
7676
test_cls = Int32
7777
scalar_type = np.int32
78-
# The behavior of some tests associated with this class variable are
79-
# order-dependent -- np.dtype('i') correctly fails certain tests only if it's not
78+
# The behavior of some tests associated with this class variable are
79+
# order-dependent -- np.dtype('i') correctly fails certain tests only if it's not
8080
# in the last position of the tuple. I have no idea how this is possible!
81-
valid_dtype = (np.dtype('i'), np.dtype(">i4"), np.dtype("<i4"))
81+
valid_dtype = (np.dtype("i"), np.dtype(">i4"), np.dtype("<i4"))
8282
invalid_dtype = (
8383
np.dtype(np.int8),
8484
np.dtype(np.uint16),

0 commit comments

Comments
 (0)