Skip to content

Commit

Permalink
Fix EOF type
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinMcCorkell committed Mar 5, 2023
1 parent bc342ab commit 0dc05f6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion grpc-stubs/aio.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ def server(

"""Channel Object"""

# XXX: The docs suggest these type signatures for aio, but not for non-async,
# and it's unclear why;
# https://grpc.github.io/grpc/python/grpc_asyncio.html#grpc.aio.Channel.stream_stream
RequestSerializer = typing.Callable[[typing.Any], bytes]
ResponseDeserializer = typing.Callable[[bytes], typing.Any]

Expand Down Expand Up @@ -111,7 +114,7 @@ class Server:
"""Client-Side Context"""

DoneCallbackType = typing.Callable[[typing.Any], None]
EOFType = _PartialStubMustCastOrIgnore
EOFType = object

class RpcContext:
def cancelled(self) -> bool: ...
Expand Down

0 comments on commit 0dc05f6

Please sign in to comment.