typing for new func and remove old from dc

pull/28386/head
Shane Smiskol 2 years ago
parent 84f2b28821
commit 191b51dbdc
  1. 6
      selfdrive/car/fw_query_definitions.py

@ -80,13 +80,9 @@ class FwQueryConfig:
fuzzy_min_match_count: int = 2
# A function to get uniquely identifiable codes for a version
# TODO: take list of versions and return set of platform codes
fuzzy_get_platform_codes: Optional[Callable] = None
fuzzy_get_platform_codes: Optional[Callable[[List[bytes]], Set[bytes]]] = None
fuzzy_ecus: List[capnp.lib.capnp._EnumModule] = field(default_factory=set)
# TODO: below func is to be replaced by above two
# A function that each make can provide to fuzzy fingerprint reliably on that make
match_fw_to_car_fuzzy: Optional[Callable[[Dict[Tuple[int, Optional[int]], List[bytes]]], Set[str]]] = None
def __post_init__(self):
for i in range(len(self.requests)):
if self.requests[i].auxiliary:

Loading…
Cancel
Save