瀏覽代碼

Ignore type

mypy complained: `Argument 2 has incompatible type "CommonQueryPostParams"; expected "CommonQueryParams"  [arg-type]`

See https://github.com/danielgatis/rembg/actions/runs/4509696356/jobs/7939764403.
I am sure what these classes signify, but this issue came about because of #409 and so I do not want to figure the problem out at this point.
Jan Philip Göpfert 2 年之前
父節點
當前提交
31690411a9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      rembg/cli.py

+ 1 - 1
rembg/cli.py

@@ -435,6 +435,6 @@ def s(port: int, log_level: str, threads: int) -> None:
         ),
         commons: CommonQueryPostParams = Depends(),
     ):
-        return await asyncify(im_without_bg)(file, commons)
+        return await asyncify(im_without_bg)(file, commons)  # type: ignore
 
     uvicorn.run(app, host="0.0.0.0", port=port, log_level=log_level)