Skip to content

Commit dc66845

Browse files
committed
removed generic application
1 parent 62bdbe2 commit dc66845

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

google/api_core/grpc_helpers_async.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
# extra Python function spreads to every single send and receive.
3737

3838

39-
class _WrappedCall(Generic[P], aio.Call):
39+
class _WrappedCall(aio.Call):
4040
def __init__(self):
4141
self._call = None
4242

@@ -152,9 +152,9 @@ class _WrappedStreamStreamCall(
152152

153153

154154
# public type alias denoting the return type of async streaming gapic calls
155-
GrpcAsyncStream = _WrappedStreamResponseMixin[P]
155+
GrpcAsyncStream = _WrappedStreamResponseMixin
156156
# public type alias denoting the return type of unary gapic calls
157-
AwaitableGrpcCall = _WrappedUnaryResponseMixin[P]
157+
AwaitableGrpcCall = _WrappedUnaryResponseMixin
158158

159159

160160
def _wrap_unary_errors(callable_):

tests/asyncio/test_grpc_helpers_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def test_awaitable_grpc_call():
319319
"""
320320
AwaitableGrpcCall type should be an Awaitable and a grpc.aio.Call.
321321
"""
322-
instance = grpc_helpers_async.AwaitableGrpcCall[int]()
322+
instance = grpc_helpers_async.AwaitableGrpcCall()
323323
assert isinstance(instance, grpc.aio.Call)
324324
# should implement __await__
325325
assert hasattr(instance, "__await__")

0 commit comments

Comments
 (0)