Skip to content

Commit

Permalink
fix linters
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgatis committed Jan 30, 2025
1 parent e1537ee commit 9d5f63d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rembg/commands/b_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9d5f63d

Please sign in to comment.