python lib: allow infinite timeout

This commit is contained in:
Adeeb Shihadeh
2023-07-20 13:07:06 -07:00
parent 1eac0d7634
commit dd78b2bf6c
3 changed files with 8 additions and 11 deletions

View File

@@ -1,5 +1,4 @@
from abc import ABC, abstractmethod
from typing import List
from .constants import McuType
@@ -24,7 +23,7 @@ class BaseHandle(ABC):
...
@abstractmethod
def bulkWrite(self, endpoint: int, data: List[int], timeout: int = TIMEOUT) -> int:
def bulkWrite(self, endpoint: int, data: bytes, timeout: int = TIMEOUT) -> int:
...
@abstractmethod