enable mypy type checking

This commit is contained in:
scito 2022-12-29 14:24:12 +01:00
parent 631bacc409
commit b89a338246
7 changed files with 85 additions and 8 deletions

View file

@ -53,18 +53,18 @@ import urllib.parse as urlparse
from enum import Enum
from operator import add
from qrcode import QRCode
from qrcode import QRCode # type: ignore
import protobuf_generated_python.google_auth_pb2
import protobuf_generated_python.google_auth_pb2 # type: ignore
try:
import cv2
import cv2 # type: ignore
import numpy
try:
import pyzbar.pyzbar as zbar
from qreader import QReader
import pyzbar.pyzbar as zbar # type: ignore
from qreader import QReader # type: ignore
except ImportError as e:
raise SystemExit(f"""
ERROR: Cannot import QReader module. This problem is probably due to the missing zbar shared library.