From ab5d2d526e11aec106d66c3e292ebe5dd4f4cbf7 Mon Sep 17 00:00:00 2001 From: J08nY Date: Tue, 29 Jul 2025 09:59:28 +0200 Subject: Fix literal union. --- pyecsca/sca/re/epa.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pyecsca/sca') diff --git a/pyecsca/sca/re/epa.py b/pyecsca/sca/re/epa.py index 14c7206..1f276d9 100644 --- a/pyecsca/sca/re/epa.py +++ b/pyecsca/sca/re/epa.py @@ -2,7 +2,7 @@ Provides functionality inspired by the Exceptional Procedure Attack [EPA]_. """ -from typing import Type, Callable, Literal +from typing import Callable, Literal, Type, Union from public import public @@ -21,7 +21,7 @@ def errors_out( mult_class: Type[ScalarMultiplier], mult_factory: Callable, check_funcs: dict[str, Callable], - check_condition: Literal["all"] | Literal["necessary"], + check_condition: Union[Literal["all"], Literal["necessary"]], precomp_to_affine: bool, ) -> bool: """ -- cgit v1.2.3-70-g09d2