X-Git-Url: http://www.average.org/gitweb/?a=blobdiff_plain;f=loctrkd%2Fprotomodule.py;h=0ffff1762dae179ac2b7124c04e8741ef160bf71;hb=HEAD;hp=1d61759c19239b9e774e2bdc811eb6d53dd4fc19;hpb=456fcc5a8964c84385d34a6687e83ae05ab2ddc3;p=loctrkd.git diff --git a/loctrkd/protomodule.py b/loctrkd/protomodule.py index 1d61759..0ffff17 100644 --- a/loctrkd/protomodule.py +++ b/loctrkd/protomodule.py @@ -122,6 +122,8 @@ class ProtoClass(Protocol, metaclass=_MetaProto): class ProtoModule: + PMODNAME: str + class Stream: def recv(self, segment: bytes) -> List[Union[bytes, str]]: ... @@ -171,3 +173,9 @@ class ProtoModule: @staticmethod def class_by_prefix(prefix: str) -> Union[Type[ProtoClass], List[str]]: ... + + @staticmethod + def make_response( + cmd: str, imei: str, **kwargs: Any + ) -> Optional[ProtoClass.Out]: + ...