Skip to content

Commit 206e231

Browse files
authored
Fix typing error in image (#668)
1 parent f974276 commit 206e231

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gramps_webapi/api/image.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ def detect_faces(stream: BinaryIO) -> list[tuple[float, float, float, float]]:
227227

228228
file_bytes = np.asarray(bytearray(stream.read()), dtype=np.uint8)
229229
cv_image = cv2.imdecode(file_bytes, cv2.IMREAD_COLOR)
230+
assert cv_image is not None, "cv_image is None" # for type checker
230231

231232
# Load the YuNet model
232233
model_path = resource_filename(

0 commit comments

Comments
 (0)