From b2a877061cb4f604154b41ee41953f7f2ba05c99 Mon Sep 17 00:00:00 2001 From: scito Date: Fri, 30 Dec 2022 01:37:13 +0100 Subject: [PATCH] add typing_extensions for compatibility --- requirements.txt | 1 + setup.py | 4 +++- utils.py | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 5243777..4bfe3b5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,3 +4,4 @@ Pillow qreader opencv-python pyzbar +typing_extensions # PYTHON < 3.11: add types diff --git a/setup.py b/setup.py index eba0add..5bda6bc 100644 --- a/setup.py +++ b/setup.py @@ -53,7 +53,9 @@ setup( 'qrcode', 'Pillow', 'qreader', - 'opencv-python' + 'pyzbar', + 'opencv-python', + 'typing_extensions' # PYTHON < 3.11: add types ], project_urls={ diff --git a/utils.py b/utils.py index 89953c8..f1372f4 100644 --- a/utils.py +++ b/utils.py @@ -13,6 +13,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +from __future__ import annotations # for compatibility with Python < 3.11 import csv import glob import io