Skip to content

Commit d81eaf7

Browse files
authored
fix @type_check_only check
1 parent 855e1a3 commit d81eaf7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stubs/grpcio/@tests/test_cases/check_server_interceptor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ async def intercept_service(
3434

3535
grpc.aio.server(interceptors=[NoopAioInterceptor()])
3636

37-
aio_handler: grpc.aio.RpcMethodHandler[bytes, bytes] = grpc.aio.RpcMethodHandler()
37+
aio_handler = cast(grpc.aio.RpcMethodHandler[bytes, bytes], object())
3838
aio_handler.unary_unary = cast(Callable[[bytes, grpc.aio.ServicerContext[bytes, bytes]], Awaitable[bytes]], None)
3939
aio_handler.unary_stream = cast(Callable[[bytes, grpc.aio.ServicerContext[bytes, bytes]], AsyncIterator[bytes]], None)
4040
aio_handler.stream_unary = cast(Callable[[AsyncIterator[bytes], grpc.aio.ServicerContext[bytes, bytes]], Awaitable[bytes]], None)

0 commit comments

Comments
 (0)