Skip to content

Commit eadb932

Browse files
passes dtype as named parameter
1 parent bdc5dfd commit eadb932

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redisvl/redis/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def array_to_buffer(array: List[float], dtype: str) -> bytes:
4141
raise ValueError(
4242
f"Invalid data type: {dtype}. Supported types are: {[t.lower() for t in VectorDataType]}"
4343
)
44-
return np.array(array, dtype.lower()).tobytes()
44+
return np.array(array, dtype=dtype.lower()).tobytes()
4545

4646

4747
def buffer_to_array(buffer: bytes, dtype: str) -> List[Any]:

0 commit comments

Comments
 (0)