Skip to content

Commit 67e3f99

Browse files
committed
chore(doc): update save_with_checksum argument
1 parent 47e5ad1 commit 67e3f99

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

binding/python/py/bintensors/numpy.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ def save_with_checksum(
112112
Optional text only metadata you might want to save in your header.
113113
For instance it can be useful to specify more about the underlying
114114
tensors. This is purely informative and does not affect tensor loading.
115-
hasher
115+
hasher (`Callable[[bytes], HASH]`):
116+
A hash is an object used to calculate a checksum of a string of information.
116117
117118
Returns:
118119
`bytes`: The raw bytes representing the format

binding/python/py/bintensors/torch.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,9 @@ def save_with_checksum(
373373
Optional text only metadata you might want to save in your header.
374374
For instance it can be useful to specify more about the underlying
375375
tensors. This is purely informative and does not affect tensor loading.
376-
376+
hasher (`Callable[[bytes], HASH]`):
377+
A hash is an object used to calculate a checksum of a string of information.
378+
377379
Returns:
378380
`bytes`: The raw bytes representing the format
379381

0 commit comments

Comments
 (0)