Skip to content

Commit

Permalink
removed generic application
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-sanche committed Dec 17, 2024
1 parent 62bdbe2 commit dc66845
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions google/api_core/grpc_helpers_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
# extra Python function spreads to every single send and receive.


class _WrappedCall(Generic[P], aio.Call):
class _WrappedCall(aio.Call):
def __init__(self):
self._call = None

Expand Down Expand Up @@ -152,9 +152,9 @@ class _WrappedStreamStreamCall(


# public type alias denoting the return type of async streaming gapic calls
GrpcAsyncStream = _WrappedStreamResponseMixin[P]
GrpcAsyncStream = _WrappedStreamResponseMixin
# public type alias denoting the return type of unary gapic calls
AwaitableGrpcCall = _WrappedUnaryResponseMixin[P]
AwaitableGrpcCall = _WrappedUnaryResponseMixin


def _wrap_unary_errors(callable_):
Expand Down
2 changes: 1 addition & 1 deletion tests/asyncio/test_grpc_helpers_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def test_awaitable_grpc_call():
"""
AwaitableGrpcCall type should be an Awaitable and a grpc.aio.Call.
"""
instance = grpc_helpers_async.AwaitableGrpcCall[int]()
instance = grpc_helpers_async.AwaitableGrpcCall()
assert isinstance(instance, grpc.aio.Call)
# should implement __await__
assert hasattr(instance, "__await__")
Expand Down

0 comments on commit dc66845

Please sign in to comment.