add typing_extensions for compatibility

This commit is contained in:
scito 2022-12-30 01:37:13 +01:00
parent c525c06480
commit b2a877061c
3 changed files with 5 additions and 1 deletions

View file

@ -4,3 +4,4 @@ Pillow
qreader qreader
opencv-python opencv-python
pyzbar pyzbar
typing_extensions # PYTHON < 3.11: add types

View file

@ -53,7 +53,9 @@ setup(
'qrcode', 'qrcode',
'Pillow', 'Pillow',
'qreader', 'qreader',
'opencv-python' 'pyzbar',
'opencv-python',
'typing_extensions' # PYTHON < 3.11: add types
], ],
project_urls={ project_urls={

View file

@ -13,6 +13,7 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
from __future__ import annotations # for compatibility with Python < 3.11
import csv import csv
import glob import glob
import io import io