Skip to content

Commit

Permalink
Enable ignored checker PYI024 (#1703)
Browse files Browse the repository at this point in the history
Signed-off-by: yangxuan <[email protected]>
  • Loading branch information
XuanYang-cn authored Sep 18, 2023
1 parent c24ed43 commit bac3195
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 @@ -93,7 +93,6 @@ ignore = [
"PLR0912", # TODO
"C901", # TODO
"PYI041", # TODO
"PYI024", # TODO
]

# Allow autofix for all enabled rules (when `--fix`) is provided.
Expand Down

0 comments on commit bac3195

Please sign in to comment.