Skip to content

Commit 0c76d3a

Browse files
committed
commands: add missing return types
Add missing return type annotations. Signed-off-by: Jordan Yates <jordan@embeint.com>
1 parent 66ce55d commit 0c76d3a

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

src/infuse_iot/commands.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ def DESCRIPTION(self) -> str:
4545

4646

4747
class InfuseRpcCommand:
48-
RPC_DATA_SEND = False
49-
RPC_DATA_SEND_CHUNKED = False
50-
RPC_DATA_RECEIVE = False
48+
RPC_DATA_SEND: bool = False
49+
RPC_DATA_SEND_CHUNKED: bool = False
50+
RPC_DATA_RECEIVE: bool = False
5151

5252
@classmethod
53-
def add_parser(cls, parser: argparse.ArgumentParser):
53+
def add_parser(cls, parser: argparse.ArgumentParser) -> None:
5454
raise NotImplementedError
5555

5656
def __init__(self, **kwargs):
@@ -82,10 +82,12 @@ def data_payload_recv_len(self) -> int:
8282

8383
def data_recv_cb(self, offset: int, data: bytes) -> None:
8484
"""Data received callback"""
85+
raise NotImplementedError
8586

8687
def data_progress_cb(self, offset: int) -> None:
8788
"""Progress callback"""
89+
raise NotImplementedError
8890

89-
def handle_response(self, return_code: int, response: ctypes.LittleEndianStructure | None):
91+
def handle_response(self, return_code: int, response: ctypes.LittleEndianStructure | None) -> None:
9092
"""Handle RPC_RSP"""
9193
raise NotImplementedError

0 commit comments

Comments
 (0)