aboutsummaryrefslogtreecommitdiffhomepage
path: root/pyecsca/ec
diff options
context:
space:
mode:
authorJ08nY2021-11-26 14:56:43 +0100
committerJ08nY2021-11-26 14:56:43 +0100
commit5d23cffb864a1d0aa3502e45a58dfcd606035b5a (patch)
treef18aacb9b28b0dfbc4aa233b91b1a22d1a89af52 /pyecsca/ec
parent7d0b038fd1aa9b8c1204f0cd80c811e4ab2da2da (diff)
downloadpyecsca-5d23cffb864a1d0aa3502e45a58dfcd606035b5a.tar.gz
pyecsca-5d23cffb864a1d0aa3502e45a58dfcd606035b5a.tar.zst
pyecsca-5d23cffb864a1d0aa3502e45a58dfcd606035b5a.zip
Fix type issue in params.load_category.
Diffstat (limited to 'pyecsca/ec')
-rw-r--r--pyecsca/ec/params.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyecsca/ec/params.py b/pyecsca/ec/params.py
index ab68a54..63cdf05 100644
--- a/pyecsca/ec/params.py
+++ b/pyecsca/ec/params.py
@@ -9,7 +9,7 @@ from astunparse import unparse
from io import RawIOBase, BufferedIOBase
from os.path import join
from pathlib import Path
-from typing import Optional, Dict, Union, BinaryIO, List, Callable
+from typing import Optional, Dict, Union, BinaryIO, List, Callable, IO
from pkg_resources import resource_listdir, resource_isdir, resource_stream
from public import public
@@ -227,7 +227,7 @@ def _create_params(curve, coords, infty):
@public
def load_category(
- file: Union[str, Path, BinaryIO],
+ file: Union[str, Path, BinaryIO, IO[bytes]],
coords: Union[str, Callable[[str], str]],
infty: Union[bool, Callable[[str], bool]] = True,
) -> DomainParameterCategory: