Skip to content

Commit

Permalink
Diff minimization: Revert some small non-semantic changes (formatting…
Browse files Browse the repository at this point in the history
… etc.)
  • Loading branch information
SyntaxColoring committed Dec 16, 2024
1 parent 0d7f92b commit b451291
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 11 deletions.
1 change: 0 additions & 1 deletion api/src/opentrons/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
Union,
)


from opentrons_shared_data.labware.labware_definition import LabwareDefinition
from opentrons_shared_data.robot.types import RobotType

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Server notifying of module connections."""

import asyncio
import logging
from typing import Dict, Set
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ def load_tip_length_for_pipette(
) -> TipLengthCalibration:
if isinstance(tiprack, LabwareDefinition):
tiprack = typing.cast(
"TypeDictLabwareDef",
tiprack.dict(exclude_none=True, exclude_unset=True),
"TypeDictLabwareDef", tiprack.dict(exclude_none=True, exclude_unset=True)
)

tip_length_data = calibration_storage.load_tip_length_calibration(
Expand Down
2 changes: 1 addition & 1 deletion api/src/opentrons/hardware_control/ot3_calibration.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Functions and utilites for OT3 calibration."""

from __future__ import annotations
from functools import lru_cache
from dataclasses import dataclass
Expand Down Expand Up @@ -560,6 +559,7 @@ async def find_calibration_structure_center(
raise_verify_error: bool = True,
probe: InstrumentProbeType = InstrumentProbeType.PRIMARY,
) -> Point:

# Perform xy offset search
if method == CalibrationMethod.BINARY_SEARCH:
found_center = await find_slot_center_binary(
Expand Down
1 change: 1 addition & 0 deletions api/src/opentrons/protocol_engine/clients/transports.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from opentrons_shared_data.labware.types import LabwareUri
from opentrons_shared_data.labware.labware_definition import LabwareDefinition


from ..protocol_engine import ProtocolEngine
from ..errors import ProtocolCommandFailedError
from ..error_recovery_policy import ErrorRecoveryType
Expand Down
1 change: 0 additions & 1 deletion api/src/opentrons/protocol_engine/state/frustum_helpers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Helper functions for liquid-level related calculations inside a given frustum."""

from typing import List, Tuple
from numpy import pi, iscomplex, roots, real
from math import isclose
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
treating CommandState as a private implementation detail.
"""


import pytest
from contextlib import nullcontext as does_not_raise
from datetime import datetime
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Test Peripherals."""

import asyncio
from pathlib import Path
from subprocess import run as run_subprocess, Popen, CalledProcessError
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Test Signals."""

import asyncio
from math import copysign
from numpy import float64
Expand Down
1 change: 0 additions & 1 deletion robot-server/robot_server/runs/router/base_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Contains routes dealing primarily with `Run` models.
"""

import logging
from datetime import datetime
from pathlib import Path
Expand Down
4 changes: 2 additions & 2 deletions shared-data/python/opentrons_shared_data/protocol/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
opentrons_shared_data.protocol.types: types for json protocols
"""

from typing import Any, Dict, List, Optional, Union, Literal
from typing import Any, Dict, List, Optional, Union
from enum import Enum

from typing_extensions import TypedDict
from typing_extensions import TypedDict, Literal
from ..pipette.types import PipetteName
from ..labware.types import LabwareDefinition
from ..module.types import ModuleModel
Expand Down

0 comments on commit b451291

Please sign in to comment.