]> www.average.org Git - loctrkd.git/blobdiff - loctrkd/protomodule.py
webdemo: use flexbox css
[loctrkd.git] / loctrkd / protomodule.py
index 1a6f0fc5ada46a73cb83d1536c9ad0d3d717d6c6..1d61759c19239b9e774e2bdc811eb6d53dd4fc19 100644 (file)
@@ -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]]:
         ...