]> www.average.org Git - loctrkd.git/blobdiff - gps303/gps303proto.py
typeckeck: annotate __main__ and fix gps303proto
[loctrkd.git] / gps303 / gps303proto.py
index cee1bfaf512fb90321ab85083dc5e985fdb8657c..c96a6dc945312ef4b0f9df46239afa06c73f6370 100755 (executable)
@@ -665,7 +665,9 @@ if True:  # just to indent the code, sorry!
             PROTOS[cls.__name__] = cls.PROTO
 
 
-def class_by_prefix(prefix: str) -> Union[type, List[Tuple[str, int]]]:
+def class_by_prefix(
+    prefix: str,
+) -> Union[Type[GPS303Pkt], List[Tuple[str, int]]]:
     lst = [
         (name, proto)
         for name, proto in PROTOS.items()