mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-27 17:42:04 +08:00
fix hypothesis warning (#32678)
fix old-commit-hash: 43ebf367ef37d949952301f2e240359b451a7043
This commit is contained in:
@@ -16,7 +16,7 @@ class FuzzyGenerator:
|
||||
|
||||
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}')
|
||||
|
||||
Reference in New Issue
Block a user