@@ -61,31 +61,31 @@ class DummyServiceServicer(metaclass=abc.ABCMeta):
6161 def UnaryUnary (
6262 self ,
6363 request : testproto .grpc .dummy_pb2 .DummyRequest ,
64- context : grpc .aio .ServicerContext ,
64+ context : grpc .aio .ServicerContext [ testproto . grpc . dummy_pb2 . DummyRequest , collections . abc . Awaitable [ testproto . grpc . dummy_pb2 . DummyReply ]] ,
6565 ) -> collections .abc .Awaitable [testproto .grpc .dummy_pb2 .DummyReply ]:
6666 """UnaryUnary"""
6767
6868 @abc .abstractmethod
6969 def UnaryStream (
7070 self ,
7171 request : testproto .grpc .dummy_pb2 .DummyRequest ,
72- context : grpc .aio .ServicerContext ,
72+ context : grpc .aio .ServicerContext [ testproto . grpc . dummy_pb2 . DummyRequest , collections . abc . AsyncIterator [ testproto . grpc . dummy_pb2 . DummyReply ]] ,
7373 ) -> collections .abc .AsyncIterator [testproto .grpc .dummy_pb2 .DummyReply ]:
7474 """UnaryStream"""
7575
7676 @abc .abstractmethod
7777 def StreamUnary (
7878 self ,
7979 request_iterator : collections .abc .AsyncIterator [testproto .grpc .dummy_pb2 .DummyRequest ],
80- context : grpc .aio .ServicerContext ,
80+ context : grpc .aio .ServicerContext [ collections . abc . AsyncIterator [ testproto . grpc . dummy_pb2 . DummyRequest ], collections . abc . Awaitable [ testproto . grpc . dummy_pb2 . DummyReply ]] ,
8181 ) -> collections .abc .Awaitable [testproto .grpc .dummy_pb2 .DummyReply ]:
8282 """StreamUnary"""
8383
8484 @abc .abstractmethod
8585 def StreamStream (
8686 self ,
8787 request_iterator : collections .abc .AsyncIterator [testproto .grpc .dummy_pb2 .DummyRequest ],
88- context : grpc .aio .ServicerContext ,
88+ context : grpc .aio .ServicerContext [ collections . abc . AsyncIterator [ testproto . grpc . dummy_pb2 . DummyRequest ], collections . abc . AsyncIterator [ testproto . grpc . dummy_pb2 . DummyReply ]] ,
8989 ) -> collections .abc .AsyncIterator [testproto .grpc .dummy_pb2 .DummyReply ]:
9090 """StreamStream"""
9191
@@ -117,15 +117,15 @@ class DeprecatedServiceServicer(metaclass=abc.ABCMeta):
117117 def DeprecatedMethod (
118118 self ,
119119 request : testproto .grpc .dummy_pb2 .DeprecatedRequest ,
120- context : grpc .aio .ServicerContext ,
120+ context : grpc .aio .ServicerContext [ testproto . grpc . dummy_pb2 . DeprecatedRequest , collections . abc . Awaitable [ testproto . grpc . dummy_pb2 . DummyReply ]] ,
121121 ) -> collections .abc .Awaitable [testproto .grpc .dummy_pb2 .DummyReply ]:
122122 """DeprecatedMethod"""
123123
124124 @abc .abstractmethod
125125 def DeprecatedMethodNotDeprecatedRequest (
126126 self ,
127127 request : testproto .grpc .dummy_pb2 .DummyRequest ,
128- context : grpc .aio .ServicerContext ,
128+ context : grpc .aio .ServicerContext [ testproto . grpc . dummy_pb2 . DummyRequest , collections . abc . Awaitable [ testproto . grpc . dummy_pb2 . DummyReply ]] ,
129129 ) -> collections .abc .Awaitable [testproto .grpc .dummy_pb2 .DummyReply ]:
130130 """DeprecatedMethodNotDeprecatedRequest"""
131131
0 commit comments