Skip to content

Commit

Permalink
Enable ignored checker PYI024
Browse files Browse the repository at this point in the history
Signed-off-by: yangxuan <[email protected]>
  • Loading branch information
XuanYang-cn committed Sep 15, 2023
1 parent 34d7fd1 commit b682be8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
15 changes: 9 additions & 6 deletions pymilvus/client/interceptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
# limitations under the License.
"""Base class for interceptors that operate on all RPC types."""

import collections
from typing import Any, Callable, List
from typing import Any, Callable, List, NamedTuple

import grpc

Expand Down Expand Up @@ -73,10 +72,14 @@ def intercept_stream_stream(
return postprocess(response_it) if postprocess else response_it


class _ClientCallDetails(
collections.namedtuple("_ClientCallDetails", ("method", "timeout", "metadata", "credentials")),
grpc.ClientCallDetails,
):
class ClientCallDetailsTuple(NamedTuple):
method: Any
timeout: Any
metadata: Any
credentials: Any


class _ClientCallDetails(ClientCallDetailsTuple, grpc.ClientCallDetails):
pass


Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ ignore = [
"TRY400",
"PLR0912", # TODO
"C901", # TODO
"PYI024", # TODO
"PYI041", # TODO
]

Expand Down

0 comments on commit b682be8

Please sign in to comment.