Skip to content

Commit 9af24ed

Browse files
committed
numpy -> np
1 parent 669afd3 commit 9af24ed

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ def _cast_scalar_unchecked(self, data: object) -> np.void:
678678
679679
Returns
680680
-------
681-
numpy.void
681+
np.void
682682
The casted data as a NumPy void scalar.
683683
684684
Notes
@@ -707,7 +707,7 @@ def cast_scalar(self, data: object) -> np.void:
707707
708708
Returns
709709
-------
710-
numpy.void
710+
np.void
711711
The data cast as a NumPy void scalar.
712712
713713
Raises
@@ -729,7 +729,7 @@ def default_scalar(self) -> np.void:
729729
730730
Returns
731731
-------
732-
numpy.void
732+
np.void
733733
The default scalar value.
734734
"""
735735
return self.to_native_dtype().type(("\x00" * self.length).encode("ascii"))
@@ -769,7 +769,7 @@ def from_json_scalar(self, data: JSON, *, zarr_format: ZarrFormat) -> np.void:
769769
770770
Returns
771771
-------
772-
numpy.void
772+
np.void
773773
The NumPy void scalar.
774774
775775
Raises

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def _cast_scalar_unchecked(self, data: StructuredScalarLike) -> np.void:
302302
303303
Returns
304304
-------
305-
numpy.void
305+
np.void
306306
The casted data as a numpy structured scalar.
307307
308308
Notes
@@ -335,7 +335,7 @@ def cast_scalar(self, data: object) -> np.void:
335335
336336
Returns
337337
-------
338-
numpy.void
338+
np.void
339339
The data cast as a NumPy structured scalar.
340340
341341
Raises
@@ -355,7 +355,7 @@ def default_scalar(self) -> np.void:
355355
356356
Returns
357357
-------
358-
numpy.void
358+
np.void
359359
The default scalar value, which is the scalar representation of 0
360360
cast to this structured data type.
361361
"""
@@ -375,7 +375,7 @@ def from_json_scalar(self, data: JSON, *, zarr_format: ZarrFormat) -> np.void:
375375
376376
Returns
377377
-------
378-
numpy.void
378+
np.void
379379
The NumPy structured scalar.
380380
381381
Raises

0 commit comments

Comments
 (0)