From cbeabc60d545dcc29f8ab45e602670d332dc0645 Mon Sep 17 00:00:00 2001 From: J08nY Date: Tue, 11 Mar 2025 21:59:17 +0100 Subject: Move to union in annotations. --- pyecsca/sca/re/rpa.py | 4 ++-- 1 file 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). -- cgit v1.3.1