Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Commit

Permalink
Merge pull request #595 from trickeydan/ensure-backend-inheritance
Browse files Browse the repository at this point in the history
  • Loading branch information
trickeydan committed Jul 6, 2020
2 parents 18f353f + 4e36306 commit 34bb0c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions j5/backends/hardware/j5/serial.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from serial import Serial, SerialException, SerialTimeoutException
from typing_extensions import Protocol

from j5.backends import BackendMeta, CommunicationError
from j5.backends import Backend, BackendMeta, CommunicationError
from j5.boards import Board


Expand Down Expand Up @@ -43,7 +43,7 @@ def write(self, data: bytes) -> int:
... # pragma: nocover


class SerialHardwareBackend(metaclass=BackendMeta):
class SerialHardwareBackend(Backend, metaclass=BackendMeta):
"""An abstract class for creating backends that use USB serial communication."""

DEFAULT_TIMEOUT: timedelta = timedelta(milliseconds=250)
Expand Down
2 changes: 1 addition & 1 deletion j5/backends/hardware/sb/arduino.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def discover(
boards.add(
SBArduinoBoard(
port.serial_number,
cls(port.device, serial_class), # type: ignore
cls(port.device, serial_class),
),
)

Expand Down

0 comments on commit 34bb0c6

Please sign in to comment.