Переглянути джерело

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)