X-Git-Url: http://average.org/gitweb/?a=blobdiff_plain;f=loctrkd%2Fprotomodule.py;h=1d61759c19239b9e774e2bdc811eb6d53dd4fc19;hb=ea3dc3f2096472d502d376e13050a59f97efd4a8;hp=1a6f0fc5ada46a73cb83d1536c9ad0d3d717d6c6;hpb=cbb7603aebedf517d7b7c61ff6de02d3e7193409;p=loctrkd.git diff --git a/loctrkd/protomodule.py b/loctrkd/protomodule.py index 1a6f0fc..1d61759 100644 --- a/loctrkd/protomodule.py +++ b/loctrkd/protomodule.py @@ -88,6 +88,10 @@ class ProtoClass(Protocol, metaclass=_MetaProto): IN_KWARGS: Tuple[Tuple[str, Callable[[Any], Any], Any], ...] = () OUT_KWARGS: Tuple[Tuple[str, Callable[[Any], Any], Any], ...] = () + @classmethod + def proto_name(cls) -> str: + ... + class In: def __init__(self, *args: Any, **kwargs: Any) -> None: ... @@ -129,6 +133,9 @@ class ProtoModule: def enframe(buffer: bytes, imei: Optional[str] = None) -> bytes: ... + class DecodeError(Exception): + ... + @staticmethod def exposed_protos() -> List[Tuple[str, bool]]: ...