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