From a97f49ebe3c8e28d2a9ba76711555a3378b62341 Mon Sep 17 00:00:00 2001 From: J08nY Date: Wed, 4 Mar 2020 00:04:53 +0100 Subject: Fix some type issues. --- pyecsca/sca/target/binary.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pyecsca/sca/target/binary.py') diff --git a/pyecsca/sca/target/binary.py b/pyecsca/sca/target/binary.py index 9a469b6..cb4c918 100644 --- a/pyecsca/sca/target/binary.py +++ b/pyecsca/sca/target/binary.py @@ -14,7 +14,7 @@ class BinaryTarget(SerialTarget): debug_output: bool def __init__(self, binary: Union[str, List[str]], debug_output: bool = False, **kwargs): - super().__init__(**kwargs) + super().__init__() if not isinstance(binary, (str, list)): raise TypeError if isinstance(binary, str): @@ -34,7 +34,7 @@ class BinaryTarget(SerialTarget): self.process.stdin.write(data.decode()) self.process.stdin.flush() - def read(self, num: Optional[int] = 0, timeout: Optional[int] = 0) -> bytes: + def read(self, num: int = 0, timeout: int = 0) -> bytes: if self.process is None: raise ValueError if num != 0: -- cgit v1.2.3-70-g09d2