Skip to content

Commit 664e931

Browse files
authored
Correct type annotation for VaeImageProcessor.numpy_to_pil (#6111)
From `(np.ndarray) -> PIL.Image.Image` to `(np.ndarray) -> List[PIL.Image.Image]`.
1 parent 88bdd97 commit 664e931

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/image_processor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def __init__(
8888
self.config.do_convert_rgb = False
8989

9090
@staticmethod
91-
def numpy_to_pil(images: np.ndarray) -> PIL.Image.Image:
91+
def numpy_to_pil(images: np.ndarray) -> List[PIL.Image.Image]:
9292
"""
9393
Convert a numpy image or a batch of images to a PIL image.
9494
"""

0 commit comments

Comments
 (0)