Skip to content

Commit

Permalink
code format
Browse files Browse the repository at this point in the history
Signed-off-by: bigsheeper <[email protected]>
  • Loading branch information
bigsheeper committed Dec 2, 2023
1 parent e03c909 commit f4d2b37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pymilvus/client/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
from typing import Any, List, Optional, Union

from pymilvus.exceptions import MilvusException, ParamError
from pymilvus.grpc_gen.common_pb2 import Status

from .constants import LOGICAL_BITS, LOGICAL_BITS_MASK
from .types import DataType
from ..grpc_gen.common_pb2 import Status

MILVUS = "milvus"
ZILLIZ = "zilliz"
Expand Down Expand Up @@ -54,7 +54,7 @@ def check_status(status: Status):
raise MilvusException(status.code, status.reason, status.error_code)


def is_successful(status):
def is_successful(status: Status):
return status.code == 0 and status.error_code == 0


Expand Down

0 comments on commit f4d2b37

Please sign in to comment.