mirror of
https://git.mirrors.martin98.com/https://github.com/danielgatis/rembg
synced 2025-08-20 02:29:05 +08:00
fix linters
This commit is contained in:
parent
747ef5e793
commit
bfafe9e9b4
@ -1,6 +1,6 @@
|
|||||||
import io
|
import io
|
||||||
from enum import Enum
|
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 numpy as np
|
||||||
import onnxruntime as ort
|
import onnxruntime as ort
|
||||||
@ -192,7 +192,7 @@ def fix_image_orientation(img: PILImage) -> PILImage:
|
|||||||
Returns:
|
Returns:
|
||||||
PILImage: The fixed image.
|
PILImage: The fixed image.
|
||||||
"""
|
"""
|
||||||
return ImageOps.exif_transpose(img)
|
return cast(PILImage, ImageOps.exif_transpose(img))
|
||||||
|
|
||||||
|
|
||||||
def download_models() -> None:
|
def download_models() -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user