Skip to content

Commit

Permalink
linting and type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
snhobbs committed Jun 5, 2024
1 parent 71714cb commit 157abdc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 106 deletions.
102 changes: 0 additions & 102 deletions examples/test.py

This file was deleted.

16 changes: 12 additions & 4 deletions src/isp_programmer/IODevices.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,18 @@ def __init__(
timeout: float = kTimeout,
):
self.uart = Serial(port, baudrate, xonxoff=False, timeout=timeout)
self.read = self.uart.read
self.read_all = self.uart.read_all
self.read_byte = self.uart.read
self.flush = self.uart.flush

def read(self, *args, **kwargs):
return self.uart.read(*args, **kwargs)

def flush(self, *args, **kwargs):
return self.uart.flush(*args, **kwargs)

def read_byte(self, *args, **kwargs):
return self.uart.read_byte(*args, **kwargs)

def read_all(self, *args, **kwargs):
return self.uart.read_all(*args, **kwargs)

def write(self, arr: bytes):
assert isinstance(arr, bytes)
Expand Down

0 comments on commit 157abdc

Please sign in to comment.