Skip to content

Commit

Permalink
use the typing types instead of builtin types
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanthecoder committed Oct 21, 2024
1 parent d25dd6d commit c551740
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ async def liquid_probe(
probe: InstrumentProbeType = InstrumentProbeType.PRIMARY,
force_both_sensors: bool = False,
response_queue: Optional[
asyncio.Queue[dict[SensorId, list[SensorDataType]]]
asyncio.Queue[Dict[SensorId, List[SensorDataType]]]
] = None,
) -> float:
...
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1373,7 +1373,7 @@ async def liquid_probe(
probe: InstrumentProbeType = InstrumentProbeType.PRIMARY,
force_both_sensors: bool = False,
response_queue: Optional[
asyncio.Queue[dict[SensorId, list[SensorDataType]]]
asyncio.Queue[Dict[SensorId, List[SensorDataType]]]
] = None,
) -> float:
head_node = axis_to_node(Axis.by_mount(mount))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ async def liquid_probe(
probe: InstrumentProbeType = InstrumentProbeType.PRIMARY,
force_both_sensors: bool = False,
response_queue: Optional[
asyncio.Queue[dict[SensorId, list[SensorDataType]]]
asyncio.Queue[Dict[SensorId, List[SensorDataType]]]
] = None,
) -> float:
z_axis = Axis.by_mount(mount)
Expand Down
4 changes: 2 additions & 2 deletions api/src/opentrons/hardware_control/ot3api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2636,7 +2636,7 @@ async def _liquid_probe_pass(
p_travel: float,
force_both_sensors: bool = False,
response_queue: Optional[
asyncio.Queue[dict[SensorId, list[SensorDataType]]]
asyncio.Queue[Dict[SensorId, List[SensorDataType]]]
] = None,
) -> float:
plunger_direction = -1 if probe_settings.aspirate_while_sensing else 1
Expand Down Expand Up @@ -2672,7 +2672,7 @@ async def liquid_probe( # noqa: C901
probe: Optional[InstrumentProbeType] = None,
force_both_sensors: bool = False,
response_queue: Optional[
asyncio.Queue[dict[SensorId, list[SensorDataType]]]
asyncio.Queue[Dict[SensorId, List[SensorDataType]]]
] = None,
) -> float:
"""Search for and return liquid level height.
Expand Down
2 changes: 1 addition & 1 deletion api/tests/opentrons/hardware_control/test_ot3_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,7 @@ async def _fake_pos_update_and_raise(
probe: InstrumentProbeType = InstrumentProbeType.PRIMARY,
force_both_sensors: bool = False,
response_queue: Optional[
asyncio.Queue[dict[SensorId, list[SensorDataType]]]
asyncio.Queue[Dict[SensorId, List[SensorDataType]]]
] = None,
) -> float:
pos = self._position
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ async def liquid_probe(
sensor_id: SensorId = SensorId.S0,
force_both_sensors: bool = False,
response_queue: Optional[
asyncio.Queue[dict[SensorId, list[SensorDataType]]]
asyncio.Queue[Dict[SensorId, List[SensorDataType]]]
] = None,
) -> Dict[NodeId, MotorPositionStatus]:
"""Move the mount and pipette simultaneously while reading from the pressure sensor."""
Expand Down

0 comments on commit c551740

Please sign in to comment.