mirror of
https://git.mirrors.martin98.com/https://github.com/danielgatis/rembg
synced 2025-08-17 21:45:57 +08:00
fix linters
This commit is contained in:
parent
e1537eeea9
commit
9d5f63d25f
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user