From dc66845616a452b4d51430598e6168a4fd3a8b9f Mon Sep 17 00:00:00 2001 From: Daniel Sanche Date: Tue, 17 Dec 2024 09:58:16 -0800 Subject: [PATCH] removed generic application --- google/api_core/grpc_helpers_async.py | 6 +++--- tests/asyncio/test_grpc_helpers_async.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/google/api_core/grpc_helpers_async.py b/google/api_core/grpc_helpers_async.py index 4bdc7182..26960456 100644 --- a/google/api_core/grpc_helpers_async.py +++ b/google/api_core/grpc_helpers_async.py @@ -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 @@ -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_): diff --git a/tests/asyncio/test_grpc_helpers_async.py b/tests/asyncio/test_grpc_helpers_async.py index d8f20ae4..aa8d5d10 100644 --- a/tests/asyncio/test_grpc_helpers_async.py +++ b/tests/asyncio/test_grpc_helpers_async.py @@ -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__")