Skip to content

Commit 3055f08

Browse files
committed
Fix typos in docstring and error message
1 parent 7b75d7f commit 3055f08

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dimod/serialization/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def _replace_float_with_int(arr: Union[List[float], List[List]]):
3434
``int``.
3535
3636
This function assumes some uniformity of the list structure. For instance giving it
37-
a list like ``[0.0, 0]`` or ``[0.0, [0.0]`` will cause it to fail.
37+
a list like ``[0.0, 0]`` or ``[0.0, [0.0]]`` will cause it to fail.
3838
3939
Acts on the list(s) in-place.
4040
"""
@@ -51,7 +51,7 @@ def _replace_float_with_int(arr: Union[List[float], List[List]]):
5151

5252
else:
5353
raise ValueError("expected a (possibly nested) list of floats, "
54-
f"recieved a (possible nested) list of {type(arr[0])}")
54+
f"received a (possibly nested) list of {type(arr[0])}")
5555

5656

5757
def serialize_ndarray(arr, use_bytes=False, bytes_type=bytes):

0 commit comments

Comments
 (0)