@@ -37,8 +37,8 @@ class NullTerminatedBytes(ZDType[np.dtypes.BytesDType[int], np.bytes_], HasLengt
3737 """
3838 A Zarr data type for arrays containing fixed-length null-terminated byte sequences.
3939
40- Wraps the NumPy ``np .dtypes.BytesDType`` data type. Scalars for this data type are instances of
41- ``np .bytes_``.
40+ Wraps the ``numpy .dtypes.BytesDType`` data type. Scalars for this data type are instances of
41+ ``numpy .bytes_``.
4242
4343 This data type is parametrized by an integral length which specifies size in bytes of each
4444 scalar. Because this data type uses null-terminated semantics, indexing into
@@ -60,16 +60,16 @@ class NullTerminatedBytes(ZDType[np.dtypes.BytesDType[int], np.bytes_], HasLengt
6060 from_json(data, zarr_format) : NullTerminatedBytes
6161 Create NullTerminatedBytes from JSON data.
6262
63- cast_scalar(data) : np .bytes_
63+ cast_scalar(data) : numpy .bytes_
6464 Cast a python object to np.bytes_.
6565
66- default_scalar() : np .bytes_
66+ default_scalar() : numpy .bytes_
6767 Return the default scalar value.
6868
6969 to_json_scalar(data, zarr_format) : str
7070 Convert input to a scalar and return as JSON data.
7171
72- from_json_scalar(data, zarr_format) : np .bytes_
72+ from_json_scalar(data, zarr_format) : numpy .bytes_
7373 Create np.bytes_ from JSON data.
7474
7575 item_size : int
@@ -294,7 +294,7 @@ def _check_scalar(self, data: object) -> TypeGuard[BytesLike]:
294294
295295 def _cast_scalar_unchecked (self , data : BytesLike ) -> np .bytes_ :
296296 """
297- Cast the provided scalar data to ``np .bytes_``, truncating if necessary.
297+ Cast the provided scalar data to ``numpy .bytes_``, truncating if necessary.
298298
299299 Parameters
300300 ----------
@@ -303,7 +303,7 @@ def _cast_scalar_unchecked(self, data: BytesLike) -> np.bytes_:
303303
304304 Returns
305305 -------
306- np .bytes_
306+ numpy .bytes_
307307 The casted data as a NumPy bytes scalar.
308308
309309 Notes
@@ -331,7 +331,7 @@ def cast_scalar(self, data: object) -> np.bytes_:
331331
332332 Returns
333333 -------
334- np .bytes_
334+ numpy .bytes_
335335 The data cast as a NumPy bytes scalar.
336336
337337 Raises
@@ -351,7 +351,7 @@ def default_scalar(self) -> np.bytes_:
351351
352352 Returns
353353 -------
354- np .bytes_
354+ numpy .bytes_
355355 The default scalar value.
356356 """
357357 return np .bytes_ (b"" )
@@ -391,7 +391,7 @@ def from_json_scalar(self, data: JSON, *, zarr_format: ZarrFormat) -> np.bytes_:
391391
392392 Returns
393393 -------
394- np .bytes_
394+ numpy .bytes_
395395 The NumPy bytes scalar obtained from decoding the base64 string.
396396
397397 Raises
@@ -424,7 +424,7 @@ class RawBytes(ZDType[np.dtypes.VoidDType[int], np.void], HasLength, HasItemSize
424424 """
425425 A Zarr data type for arrays containing fixed-length sequences of raw bytes.
426426
427- Wraps the NumPy ``void`` data type. Scalars for this data type are instances of ``np .void``.
427+ Wraps the NumPy ``void`` data type. Scalars for this data type are instances of ``numpy .void``.
428428
429429 This data type is parametrized by an integral length which specifies size in bytes of each
430430 scalar belonging to this data type.
@@ -454,7 +454,7 @@ class RawBytes(ZDType[np.dtypes.VoidDType[int], np.void], HasLength, HasItemSize
454454 to_json_scalar(data, zarr_format) : str
455455 Convert input to a scalar and return as JSON data.
456456
457- from_json_scalar(data, zarr_format) : np .bytes_
457+ from_json_scalar(data, zarr_format) : numpy .bytes_
458458 Create a np.void from JSON data.
459459
460460 item_size : int
@@ -724,7 +724,7 @@ def _cast_scalar_unchecked(self, data: object) -> np.void:
724724
725725 Returns
726726 -------
727- np .void
727+ numpy .void
728728 The casted data as a NumPy void scalar.
729729
730730 Notes
@@ -753,7 +753,7 @@ def cast_scalar(self, data: object) -> np.void:
753753
754754 Returns
755755 -------
756- np .void
756+ numpy .void
757757 The data cast as a NumPy void scalar.
758758
759759 Raises
@@ -775,7 +775,7 @@ def default_scalar(self) -> np.void:
775775
776776 Returns
777777 -------
778- np .void
778+ numpy .void
779779 The default scalar value.
780780 """
781781 return self .to_native_dtype ().type (("\x00 " * self .length ).encode ("ascii" ))
@@ -815,7 +815,7 @@ def from_json_scalar(self, data: JSON, *, zarr_format: ZarrFormat) -> np.void:
815815
816816 Returns
817817 -------
818- np .void
818+ numpy .void
819819 The NumPy void scalar.
820820
821821 Raises
0 commit comments