We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 855e1a3 commit d81eaf7Copy full SHA for d81eaf7
1 file changed
stubs/grpcio/@tests/test_cases/check_server_interceptor.py
@@ -34,7 +34,7 @@ async def intercept_service(
34
35
grpc.aio.server(interceptors=[NoopAioInterceptor()])
36
37
-aio_handler: grpc.aio.RpcMethodHandler[bytes, bytes] = grpc.aio.RpcMethodHandler()
+aio_handler = cast(grpc.aio.RpcMethodHandler[bytes, bytes], object())
38
aio_handler.unary_unary = cast(Callable[[bytes, grpc.aio.ServicerContext[bytes, bytes]], Awaitable[bytes]], None)
39
aio_handler.unary_stream = cast(Callable[[bytes, grpc.aio.ServicerContext[bytes, bytes]], AsyncIterator[bytes]], None)
40
aio_handler.stream_unary = cast(Callable[[AsyncIterator[bytes], grpc.aio.ServicerContext[bytes, bytes]], Awaitable[bytes]], None)
0 commit comments