We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b75d7f commit 3055f08Copy full SHA for 3055f08
1 file changed
dimod/serialization/utils.py
@@ -34,7 +34,7 @@ def _replace_float_with_int(arr: Union[List[float], List[List]]):
34
``int``.
35
36
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.
+ a list like ``[0.0, 0]`` or ``[0.0, [0.0]]`` will cause it to fail.
38
39
Acts on the list(s) in-place.
40
"""
@@ -51,7 +51,7 @@ def _replace_float_with_int(arr: Union[List[float], List[List]]):
51
52
else:
53
raise ValueError("expected a (possibly nested) list of floats, "
54
- f"recieved a (possible nested) list of {type(arr[0])}")
+ f"received a (possibly nested) list of {type(arr[0])}")
55
56
57
def serialize_ndarray(arr, use_bytes=False, bytes_type=bytes):
0 commit comments