From 463a9851bea46febf79ddbc5b3912a2d72955b27 Mon Sep 17 00:00:00 2001 From: scito Date: Sat, 31 Dec 2022 18:55:16 +0100 Subject: [PATCH] try workaround for Python 3.7: avoid Final in tuple assignments --- src/extract_otp_secrets.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/extract_otp_secrets.py b/src/extract_otp_secrets.py index 2b45211..46c3f7e 100644 --- a/src/extract_otp_secrets.py +++ b/src/extract_otp_secrets.py @@ -97,11 +97,11 @@ Exception: {e}""") # SUCCESS_COLOR: Final[ColorBGR] = 0, 255, 0 # FAILURE_COLOR: Final[ColorBGR] = 0, 0, 255 # FONT_DY: Final[Tuple[int, int]] = 0, cv2.getTextSize("M", FONT, FONT_SCALE, FONT_THICKNESS)[0][1] + 5 - START_POS_TEXT: Final[Tuple[int, int]] = 5, 20 - NORMAL_COLOR: Final[Tuple[int, int, int]] = 255, 0, 255 - SUCCESS_COLOR: Final[Tuple[int, int, int]] = 0, 255, 0 - FAILURE_COLOR: Final[Tuple[int, int, int]] = 0, 0, 255 - FONT_DY: Final[Tuple[int, int]] = 0, cv2.getTextSize("M", FONT, FONT_SCALE, FONT_THICKNESS)[0][1] + 5 + START_POS_TEXT: Tuple[int, int] = 5, 20 + NORMAL_COLOR: Tuple[int, int, int] = 255, 0, 255 + SUCCESS_COLOR: Tuple[int, int, int] = 0, 255, 0 + FAILURE_COLOR: Tuple[int, int, int] = 0, 0, 255 + FONT_DY: Tuple[int, int] = 0, cv2.getTextSize("M", FONT, FONT_SCALE, FONT_THICKNESS)[0][1] + 5 qreader_available = True except ImportError: