diff --git a/selfdrive/test/fuzzy_generation.py b/selfdrive/test/fuzzy_generation.py index 0dc2e44eee90dd..94eb0dfaa62a75 100644 --- a/selfdrive/test/fuzzy_generation.py +++ b/selfdrive/test/fuzzy_generation.py @@ -16,7 +16,7 @@ def __init__(self, draw: DrawType, real_floats: bool): def generate_native_type(self, field: str) -> st.SearchStrategy[bool | int | float | str | bytes]: value_func = self.native_type_map.get(field) - if value_func: + if value_func is not None: return value_func else: raise NotImplementedError(f'Invalid type: {field}')