Skip to content

Commit

Permalink
Make UnaryMultiCallable timeout a float
Browse files Browse the repository at this point in the history
  • Loading branch information
snuderl committed Jun 6, 2023
1 parent b2d5e65 commit bf9f183
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion grpc-stubs/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ class UnaryUnaryMultiCallable(typing.Generic[TRequest, TResponse]):
def __call__(
self,
request: TRequest,
timeout: typing.Optional[int] = None,
timeout: typing.Optional[float] = None,
metadata: typing.Optional[Metadata] = None,
credentials: typing.Optional[CallCredentials] = None,

Expand Down
2 changes: 1 addition & 1 deletion grpc-stubs/aio/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ class UnaryUnaryMultiCallable(typing.Generic[TRequest, TResponse]):
def __call__(
self,
request: TRequest,
timeout: typing.Optional[int] = None,
timeout: typing.Optional[float] = None,
metadata: typing.Optional[MetadataType] = None,
credentials: typing.Optional[CallCredentials] = None,
# FIXME: optional bool seems weird, but that's what the docs suggest
Expand Down

0 comments on commit bf9f183

Please sign in to comment.