From 7dd49ea1913e0af8514cf4c5077ade14cf16e3fe Mon Sep 17 00:00:00 2001 From: r0g0bum Date: Fri, 5 Jul 2024 17:49:19 +0530 Subject: [PATCH] reformatted, --- pymilvus/orm/types.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pymilvus/orm/types.py b/pymilvus/orm/types.py index 438e24767..fae883fa8 100644 --- a/pymilvus/orm/types.py +++ b/pymilvus/orm/types.py @@ -131,10 +131,12 @@ def infer_dtype_bydata(data: Any, **kwargs): d_type = dtype_str_map.get(type_str, DataType.UNKNOWN) if is_varchar_datatype(d_type) or is_bool_datatype(d_type): return DataType.ARRAY - if kwargs is None or len(kwargs) == 0 or (kwargs["type"] is not None and kwargs["type"] == "vector"): - return ( - DataType.FLOAT_VECTOR if is_numeric_datatype(d_type) else DataType.UNKNOWN - ) + if ( + kwargs is None + or len(kwargs) == 0 + or (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