From 9d5f63d25f9002992112f1b64c562df5fce361ba Mon Sep 17 00:00:00 2001 From: Daniel Gatis Date: Thu, 30 Jan 2025 14:51:47 -0300 Subject: [PATCH] fix linters --- rembg/commands/b_command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rembg/commands/b_command.py b/rembg/commands/b_command.py index 6fb1fa67..402e17ed 100644 --- a/rembg/commands/b_command.py +++ b/rembg/commands/b_command.py @@ -135,7 +135,7 @@ def b_command( if not os.path.isdir(output_dir): os.makedirs(output_dir, exist_ok=True) - def img_to_byte_array(img: PIL.Image) -> bytes: + def img_to_byte_array(img: PIL.Image.Image) -> bytes: buff = io.BytesIO() img.save(buff, format="PNG") return buff.getvalue()