Skip to content

Commit

Permalink
fix: don't assume Pillow is available
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Oct 4, 2024
1 parent eb73c01 commit fd2f8f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openfoodfacts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ def get_image_from_url(
error_raise: bool = True,
session: Optional[requests.Session] = None,
return_struct: bool = False,
) -> Union[ImageDownloadItem, Image.Image, None]:
) -> Union[ImageDownloadItem, "Image.Image", None]:
"""Fetch an image from `image_url` and load it.
:param image_url: URL of the image to load.
Expand Down

0 comments on commit fd2f8f2

Please sign in to comment.