Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/grpclib/_typing.py: 0%
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1from typing import Mapping, Any
2from typing_extensions import Protocol
4from . import const
5from . import server
8class IServable(Protocol):
9 def __mapping__(self) -> Mapping[str, const.Handler]: ...
12class ICheckable(Protocol):
13 def __mapping__(self) -> Mapping[str, Any]: ...
16class IClosable(Protocol):
17 def close(self) -> None: ...
20class IProtoMessage(Protocol):
21 @classmethod
22 def FromString(cls, s: bytes) -> 'IProtoMessage': ...
24 def SerializeToString(self) -> bytes: ...
27class IEventsTarget(Protocol):
28 __dispatch__: Any # FIXME: should be events._Dispatch
31class IServerMethodFunc(Protocol):
32 async def __call__(self, stream: 'server.Stream[Any, Any]') -> None: ...
35class IReleaseStream(Protocol):
36 def __call__(self) -> None: ...