Remove NoReturn to support <3.6.2

pull/21987/head
Lidi Zheng 5 years ago
parent 0c7bf6c434
commit 479651e4cf
  1. 4
      src/python/grpcio/grpc/experimental/aio/_base_server.py

@ -14,7 +14,7 @@
"""Abstract base classes for server-side classes."""
import abc
from typing import Generic, NoReturn, Optional, Sequence
from typing import Generic, Optional, Sequence
import grpc
@ -166,7 +166,7 @@ class ServicerContext(Generic[RequestType, ResponseType], abc.ABC):
@abc.abstractmethod
async def abort(self, code: grpc.StatusCode, details: str,
trailing_metadata: MetadataType) -> NoReturn:
trailing_metadata: MetadataType) -> None:
"""Raises an exception to terminate the RPC with a non-OK status.
The code and details passed as arguments will supercede any existing

Loading…
Cancel
Save