mirror of
https://github.com/scito/extract_otp_secret_keys.git
synced 2025-12-15 19:16:42 +01:00
enable mypy type checking
This commit is contained in:
parent
631bacc409
commit
b89a338246
7 changed files with 85 additions and 8 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue