Skip to content

Commit

Permalink
reformatted
Browse files Browse the repository at this point in the history
Signed-off-by: r0g0bum <[email protected]>
  • Loading branch information
r0g0bum committed Jul 5, 2024
1 parent 8ae86f4 commit 727d14e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions pymilvus/orm/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,12 @@ def infer_dtype_bydata(data: Any, **kwargs):
return DataType.ARRAY
if kwargs is None or len(kwargs) == 0:
return DataType.FLOAT_VECTOR if is_numeric_datatype(d_type) else DataType.UNKNOWN
elif kwargs["type"] is not None and kwargs["type"] == "vector":
return (
DataType.FLOAT_VECTOR if is_numeric_datatype(d_type) else DataType.UNKNOWN
)
else:
if kwargs["type"] is not None and kwargs["type"] == "vector":
return (
DataType.FLOAT_VECTOR if is_numeric_datatype(d_type) else DataType.UNKNOWN
)
else:
return DataType.ARRAY
return DataType.ARRAY

if d_type == DataType.UNKNOWN:
try:
Expand Down

0 comments on commit 727d14e

Please sign in to comment.