X-Git-Url: http://average.org/gitweb/?a=blobdiff_plain;f=gps303%2Fgps303proto.py;h=c96a6dc945312ef4b0f9df46239afa06c73f6370;hb=b84a40a485b0563d572d14e748ad324185584344;hp=cee1bfaf512fb90321ab85083dc5e985fdb8657c;hpb=2ddbb639a1bb1164d56367c369a97da507abf964;p=loctrkd.git diff --git a/gps303/gps303proto.py b/gps303/gps303proto.py index cee1bfa..c96a6dc 100755 --- a/gps303/gps303proto.py +++ b/gps303/gps303proto.py @@ -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()