소스 검색

fix linters

Daniel Gatis 7 달 전
부모
커밋
9d5f63d25f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      rembg/commands/b_command.py

+ 1 - 1
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()