aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ08nY2025-03-11 21:59:17 +0100
committerJ08nY2025-03-11 21:59:17 +0100
commitcbeabc60d545dcc29f8ab45e602670d332dc0645 (patch)
treebd379f895266d6fcf6e8d3b162bfc0104551517a
parent90003215e350b16a43992e72decfe2b15125299e (diff)
downloadpyecsca-cbeabc60d545dcc29f8ab45e602670d332dc0645.tar.gz
pyecsca-cbeabc60d545dcc29f8ab45e602670d332dc0645.tar.zst
pyecsca-cbeabc60d545dcc29f8ab45e602670d332dc0645.zip
-rw-r--r--pyecsca/sca/re/rpa.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyecsca/sca/re/rpa.py b/pyecsca/sca/re/rpa.py
index 7977102..2ed4339 100644
--- a/pyecsca/sca/re/rpa.py
+++ b/pyecsca/sca/re/rpa.py
@@ -6,7 +6,7 @@ from copy import copy, deepcopy
from functools import lru_cache
from public import public
-from typing import MutableMapping, Optional, Callable, List, Set, cast, Type, Literal
+from typing import MutableMapping, Optional, Callable, List, Set, cast, Type, Literal, Union
from sympy import FF, sympify, Poly, symbols
@@ -399,7 +399,7 @@ def multiples_computed(
mult_factory: Callable,
use_init: bool = False,
use_multiply: bool = True,
- kind: Literal["all"] | Literal["input"] | Literal["necessary"] = "all",
+ kind: Union[Literal["all"], Literal["input"], Literal["necessary"]] = "all",
) -> set[int]:
"""
Compute the multiples computed for a given scalar and multiplier (quickly).