Skip to content

Commit 9e89bab

Browse files
author
r0g0bum
committed
reformatted
1 parent 080946d commit 9e89bab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pymilvus/orm/types.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,12 @@ def infer_dtype_bydata(data: Any, **kwargs):
132132
if is_varchar_datatype(d_type) or is_bool_datatype(d_type):
133133
return DataType.ARRAY
134134
if kwargs is None or len(kargs) == 0:
135-
return DataType.FLOAT_VECTOR if \
136-
is_numeric_datatype(d_type) else DataType.UNKNOWN
135+
return DataType.FLOAT_VECTOR if is_numeric_datatype(d_type) else DataType.UNKNOWN
137136
else:
138137
if kwargs["type"] is not None and kwargs["type"] == "vector":
139-
return DataType.FLOAT_VECTOR \
140-
if is_numeric_datatype(d_type) else DataType.UNKNOWN
138+
return (
139+
DataType.FLOAT_VECTOR if is_numeric_datatype(d_type) else DataType.UNKNOWN
140+
)
141141
else:
142142
return DataType.ARRAY
143143

0 commit comments

Comments
 (0)