Fix a tiny typing mismatch

pull/21232/head
Lidi Zheng 5 years ago
parent 1e31e610e7
commit d411891bf6
  1. 2
      src/python/grpcio/grpc/experimental/aio/_channel.py

@ -23,7 +23,7 @@ from ._typing import (DeserializingFunction, MetadataType, SerializingFunction)
def _timeout_to_deadline(loop: asyncio.AbstractEventLoop,
timeout: int) -> Optional[int]:
timeout: Optional[float]) -> Optional[float]:
if timeout is None:
return None
return loop.time() + timeout

Loading…
Cancel
Save