X-Git-Url: http://www.average.org/gitweb/?p=loctrkd.git;a=blobdiff_plain;f=gps303%2Fgps303proto.py;h=c96a6dc945312ef4b0f9df46239afa06c73f6370;hp=cee1bfaf512fb90321ab85083dc5e985fdb8657c;hb=66f552e63fb7568c6cd30e3c3c0b2735acadc418;hpb=5406967fae63d57acb2d82f5d15a591b5b827af5 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()