Commit 57e91981 authored by Henrik Menne's avatar Henrik Menne
Browse files

fix typing

parent d571be80
......@@ -139,7 +139,7 @@ class LabJack(SingleCommDevice):
# or `tuple` of `float`; defensively casting in case this changes in future
if isinstance(ret_val, Sequence) and not isinstance(ret_val, str):
return tuple(float(val) for val in ret_val)
return tuple(float(ret_val))
return tuple([float(ret_val)])
def set_ain_range(self, channel: int, ain_range: AInRange) -> None:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment