Skip to content

Commit

Permalink
Ignore mypy check on cv2 import
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Nov 22, 2024
1 parent a3a1326 commit 7b976f8
Show file tree
Hide file tree
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


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


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

0 comments on commit 7b976f8

Please sign in to comment.