Skip to content

Commit

Permalink
fix: fix mypy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed May 15, 2024
1 parent 5d99f28 commit 0c25bb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion robotoff/app/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,8 @@ def on_get(self, req: falcon.Request, resp: falcon.Response):
result = model.detect_from_image(image, output_image=output_image)

if output_image:
image_response(result.boxed_image, resp)
boxed_image = cast(Image.Image, result.boxed_image)
image_response(boxed_image, resp)

Check warning on line 899 in robotoff/app/api.py

View check run for this annotation

Codecov / codecov/patch

robotoff/app/api.py#L898-L899

Added lines #L898 - L899 were not covered by tests
return
else:
predictions[model_name] = result.to_json()
Expand Down

0 comments on commit 0c25bb2

Please sign in to comment.