Skip to content

Commit 6e6d337

Browse files
committed
put return types in double backticks
1 parent efb767f commit 6e6d337

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def cast_scalar(self, data: object) -> np.bool_:
235235
236236
Returns
237237
-------
238-
np.bool_
238+
``np.bool_``
239239
The numpy boolean scalar.
240240
241241
Raises
@@ -254,7 +254,7 @@ def default_scalar(self) -> np.bool_:
254254
255255
Returns
256256
-------
257-
np.bool_
257+
``np.bool_``
258258
The default value.
259259
"""
260260
return np.False_
@@ -290,7 +290,7 @@ def from_json_scalar(self, data: JSON, *, zarr_format: ZarrFormat) -> np.bool_:
290290
291291
Returns
292292
-------
293-
np.bool_
293+
``np.bool_``
294294
The numpy boolean scalar.
295295
296296
Raises

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def cast_scalar(self, data: object) -> np.bytes_:
308308
309309
Returns
310310
-------
311-
np.bytes_
311+
``np.bytes_``
312312
The data cast as a NumPy bytes scalar.
313313
314314
Raises
@@ -328,7 +328,7 @@ def default_scalar(self) -> np.bytes_:
328328
329329
Returns
330330
-------
331-
np.bytes_
331+
``np.bytes_``
332332
The default scalar value.
333333
"""
334334
return np.bytes_(b"")
@@ -368,7 +368,7 @@ def from_json_scalar(self, data: JSON, *, zarr_format: ZarrFormat) -> np.bytes_:
368368
369369
Returns
370370
-------
371-
np.bytes_
371+
``np.bytes_``
372372
The NumPy bytes scalar obtained from decoding the base64 string.
373373
374374
Raises

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def default_scalar(self) -> np.str_:
244244
245245
Returns
246246
-------
247-
np.str_
247+
``np.str_``
248248
The default scalar value.
249249
"""
250250
return np.str_("")
@@ -280,7 +280,7 @@ def from_json_scalar(self, data: JSON, *, zarr_format: ZarrFormat) -> np.str_:
280280
281281
Returns
282282
-------
283-
np.str_
283+
``np.str_``
284284
The native scalar value.
285285
"""
286286
if check_json_str(data):
@@ -315,7 +315,7 @@ def cast_scalar(self, data: object) -> np.str_:
315315
316316
Returns
317317
-------
318-
np.str_
318+
``np.str_``
319319
The native scalar value.
320320
"""
321321
if self._check_scalar(data):

0 commit comments

Comments
 (0)