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

21 statements  

1from typing import Mapping, Any 

2from typing_extensions import Protocol 

3 

4from . import const 

5from . import server 

6 

7 

8class IServable(Protocol): 

9 def __mapping__(self) -> Mapping[str, const.Handler]: ... 

10 

11 

12class ICheckable(Protocol): 

13 def __mapping__(self) -> Mapping[str, Any]: ... 

14 

15 

16class IClosable(Protocol): 

17 def close(self) -> None: ... 

18 

19 

20class IProtoMessage(Protocol): 

21 @classmethod 

22 def FromString(cls, s: bytes) -> 'IProtoMessage': ... 

23 

24 def SerializeToString(self) -> bytes: ... 

25 

26 

27class IEventsTarget(Protocol): 

28 __dispatch__: Any # FIXME: should be events._Dispatch 

29 

30 

31class IServerMethodFunc(Protocol): 

32 async def __call__(self, stream: 'server.Stream[Any, Any]') -> None: ... 

33 

34 

35class IReleaseStream(Protocol): 

36 def __call__(self) -> None: ...