|
|
@ -18,7 +18,6 @@ from typing import Generic, Iterable, Mapping, NoReturn, Optional, Sequence |
|
|
|
|
|
|
|
|
|
|
|
import grpc |
|
|
|
import grpc |
|
|
|
|
|
|
|
|
|
|
|
from ._metadata import Metadata |
|
|
|
|
|
|
|
from ._typing import DoneCallbackType |
|
|
|
from ._typing import DoneCallbackType |
|
|
|
from ._typing import MetadataType |
|
|
|
from ._typing import MetadataType |
|
|
|
from ._typing import RequestType |
|
|
|
from ._typing import RequestType |
|
|
@ -225,7 +224,7 @@ class ServicerContext(Generic[RequestType, ResponseType], abc.ABC): |
|
|
|
""" |
|
|
|
""" |
|
|
|
|
|
|
|
|
|
|
|
@abc.abstractmethod |
|
|
|
@abc.abstractmethod |
|
|
|
def invocation_metadata(self) -> Optional[Metadata]: |
|
|
|
def invocation_metadata(self) -> Optional[MetadataType]: |
|
|
|
"""Accesses the metadata sent by the client. |
|
|
|
"""Accesses the metadata sent by the client. |
|
|
|
|
|
|
|
|
|
|
|
Returns: |
|
|
|
Returns: |
|
|
|