Skip to content

Commit a543575

Browse files
Cleanup
Signed-off-by: Elena Kolevska <elena@kolevska.com>
1 parent e62ec72 commit a543575

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

dapr/clients/grpc/_helpers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
from enum import Enum
1717
from google.protobuf.any_pb2 import Any as GrpcAny
1818
from google.protobuf.message import Message as GrpcMessage
19-
from grpc import UnaryUnaryClientInterceptor, ClientCallDetails # type: ignore
2019

2120
MetadataDict = Dict[str, List[Union[bytes, str]]]
2221
MetadataTuple = Tuple[Tuple[str, Union[bytes, str]], ...]

dapr/clients/grpc/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def __init__(
167167
options=options,
168168
)
169169

170-
self._channel = grpc.intercept_channel(self._channel, DaprClientTimeoutInterceptor())
170+
self._channel = grpc.intercept_channel(self._channel, DaprClientTimeoutInterceptor()) # type: ignore
171171

172172
if settings.DAPR_API_TOKEN:
173173
api_token_interceptor = DaprClientInterceptor(

dapr/clients/grpc/interceptors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from collections import namedtuple
22
from typing import List, Tuple
33

4-
from grpc import UnaryUnaryClientInterceptor, ClientCallDetails
4+
from grpc import UnaryUnaryClientInterceptor, ClientCallDetails # type: ignore
55

66
from dapr.conf import settings
77

tests/clients/test_client_interceptor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
import unittest
1717

18-
from dapr.clients.grpc._helpers import DaprClientInterceptor, _ClientCallDetails
18+
from dapr.clients.grpc.interceptors import DaprClientInterceptor, _ClientCallDetails
1919

2020

2121
class DaprClientInterceptorTests(unittest.TestCase):

tests/clients/test_timeout_interceptor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
import unittest
1717
from unittest.mock import Mock, patch
18-
from dapr.clients.grpc.interceptors import DaprClientTimeoutInterceptor, ClientCallDetails
18+
from dapr.clients.grpc.interceptors import DaprClientTimeoutInterceptor
1919
from dapr.conf import settings
2020

2121

0 commit comments

Comments
 (0)