Skip to content

Commit

Permalink
fix linters
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgatis committed May 23, 2024
1 parent 747ef5e commit bfafe9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rembg/bg.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit bfafe9e

Please sign in to comment.