Skip to content

Commit

Permalink
fix hypothesis warning (#32678)
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
sshane authored Jun 10, 2024
1 parent 19e0fa3 commit 43ebf36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/test/fuzzy_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}')
Expand Down

0 comments on commit 43ebf36

Please sign in to comment.