Skip to content

Commit

Permalink
make format
Browse files Browse the repository at this point in the history
  • Loading branch information
ahiuchingau committed May 13, 2024
1 parent c42dd65 commit eeffc32
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 20 deletions.
4 changes: 1 addition & 3 deletions api/src/opentrons/drivers/absorbance_reader/async_byonoy.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,16 @@
import asyncio
import re
import subprocess
from dataclasses import dataclass
from concurrent.futures.thread import ThreadPoolExecutor
from functools import partial
from typing import Optional, Union, List, Dict, Literal
from typing import Optional, List, Dict


from .hid_protocol import AbsorbanceHidInterface as AbsProtocol
from opentrons.drivers.types import (
AbsorbanceReaderLidStatus,
AbsorbanceReaderPlatePresence,
)
from opentrons.drivers.rpi_drivers.types import USBPort


SN_PARSER = re.compile(r'ATTRS{serial}=="(?P<serial>.+?)"')
Expand Down
2 changes: 0 additions & 2 deletions api/src/opentrons/drivers/absorbance_reader/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

import asyncio
from typing import Dict, Optional, List
from dataclasses import asdict

from opentrons.drivers.types import AbsorbanceReaderLidStatus
from opentrons.drivers.rpi_drivers.types import USBPort
from opentrons.drivers.absorbance_reader.abstract import AbstractAbsorbanceReaderDriver
from .async_byonoy import AsyncByonoy

Expand Down
7 changes: 0 additions & 7 deletions api/src/opentrons/drivers/absorbance_reader/hid_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,9 @@
List,
Tuple,
ClassVar,
Literal,
runtime_checkable,
TypeVar,
Generic,
)
from opentrons.drivers.types import (
AbsorbanceReaderLidStatus,
AbsorbanceReaderPlatePresence,
)
from enum import Enum

Response = TypeVar("Response")

Expand Down
1 change: 0 additions & 1 deletion api/src/opentrons/drivers/absorbance_reader/simulator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import asyncio
from typing import Dict, List, Optional
from opentrons.util.async_helpers import ensure_yield

Expand Down
2 changes: 1 addition & 1 deletion api/src/opentrons/drivers/rpi_drivers/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import re
from itertools import groupby
from dataclasses import dataclass
from typing import List, Optional, Set, Tuple
from typing import List, Optional, Tuple
from opentrons.hardware_control.types import BoardRevision


Expand Down
3 changes: 1 addition & 2 deletions api/src/opentrons/drivers/rpi_drivers/usb.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"""

import subprocess
import re
import os
from typing import List, Union

Expand All @@ -17,7 +16,7 @@
from opentrons.hardware_control.types import BoardRevision

from .interfaces import USBDriverInterface
from .types import BUS_PATH, USB_PORT_INFO, USBPort
from .types import BUS_PATH, USBPort


class USBBus(USBDriverInterface):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import asyncio
import logging
from typing import Optional, Mapping, List, Dict, Any, Tuple

from opentrons.drivers.rpi_drivers.types import USBPort
Expand Down
1 change: 0 additions & 1 deletion api/src/opentrons/hardware_control/modules/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from typing import Any, AsyncGenerator, Dict, Tuple, Union
from .types import UpdateError
from .mod_abc import AbstractModule
from .absorbance_reader import AbsorbanceReader
from opentrons.hardware_control.threaded_async_lock import ThreadedAsyncLock
from contextlib import asynccontextmanager

Expand Down
3 changes: 1 addition & 2 deletions api/tests/opentrons/drivers/absorbance_reader/test_driver.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from mock import MagicMock, Mock
from typing import Tuple
from mock import MagicMock
import pytest
import asyncio
from enum import Enum
Expand Down

0 comments on commit eeffc32

Please sign in to comment.