Skip to content

Commit

Permalink
Ignore mypy check on cv2 import
Browse files Browse the repository at this point in the history
wkentaro committed Nov 22, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 6c39688 commit 38b3993
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion imgviz/_io/opencv.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
try:
import cv2
except ImportError:
cv2 = None
cv2 = None # type: ignore
import numpy as np # NOQA


2 changes: 1 addition & 1 deletion imgviz/resize.py
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@
try:
import cv2
except ImportError:
cv2 = None
cv2 = None # type: ignore


def _resize_pillow(src, height, width, interpolation):

0 comments on commit 38b3993

Please sign in to comment.