From bfafe9e9b4d73caa70a575092f27c18d4942b696 Mon Sep 17 00:00:00 2001 From: Daniel Gatis Date: Thu, 23 May 2024 19:25:52 -0300 Subject: [PATCH] fix linters --- rembg/bg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rembg/bg.py b/rembg/bg.py index f3efe3d..c0ccd78 100644 --- a/rembg/bg.py +++ b/rembg/bg.py @@ -1,6 +1,6 @@ import io from enum import Enum -from typing import Any, List, Optional, Tuple, Union +from typing import Any, List, Optional, Tuple, Union, cast import numpy as np import onnxruntime as ort @@ -192,7 +192,7 @@ def fix_image_orientation(img: PILImage) -> PILImage: Returns: PILImage: The fixed image. """ - return ImageOps.exif_transpose(img) + return cast(PILImage, ImageOps.exif_transpose(img)) def download_models() -> None: