X-Git-Url: http://www.average.org/gitweb/?p=loctrkd.git;a=blobdiff_plain;f=loctrkd%2Fprotomodule.py;h=a1698f2fde7ae52389a62b16dccf265122bacc93;hp=1d61759c19239b9e774e2bdc811eb6d53dd4fc19;hb=2cf0fd9d215dda17eae4261ab7967367f6aa0028;hpb=6eff65f7b03bc66a479df0fd694250e1e0b7c5ae diff --git a/loctrkd/protomodule.py b/loctrkd/protomodule.py index 1d61759..a1698f2 100644 --- a/loctrkd/protomodule.py +++ b/loctrkd/protomodule.py @@ -122,6 +122,8 @@ class ProtoClass(Protocol, metaclass=_MetaProto): class ProtoModule: + __name__: 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]: + ...