aboutsummaryrefslogtreecommitdiffhomepage
path: root/pyecsca/sca/target/binary.py
diff options
context:
space:
mode:
authorJ08nY2020-03-04 00:04:53 +0100
committerJ08nY2020-03-04 00:04:53 +0100
commita97f49ebe3c8e28d2a9ba76711555a3378b62341 (patch)
treed6064aec39573ad9e83607dbed5873d7872aed21 /pyecsca/sca/target/binary.py
parentdeca0e3d89ff4483dd6b6b4ad99b3400145bee5b (diff)
downloadpyecsca-a97f49ebe3c8e28d2a9ba76711555a3378b62341.tar.gz
pyecsca-a97f49ebe3c8e28d2a9ba76711555a3378b62341.tar.zst
pyecsca-a97f49ebe3c8e28d2a9ba76711555a3378b62341.zip
Fix some type issues.
Diffstat (limited to 'pyecsca/sca/target/binary.py')
-rw-r--r--pyecsca/sca/target/binary.py4
1 files changed, 2 insertions, 2 deletions
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: