diff options
| author | J08nY | 2021-11-26 14:56:43 +0100 |
|---|---|---|
| committer | J08nY | 2021-11-26 14:56:43 +0100 |
| commit | 5d23cffb864a1d0aa3502e45a58dfcd606035b5a (patch) | |
| tree | f18aacb9b28b0dfbc4aa233b91b1a22d1a89af52 /pyecsca/ec | |
| parent | 7d0b038fd1aa9b8c1204f0cd80c811e4ab2da2da (diff) | |
| download | pyecsca-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.py | 4 |
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: |
