Skip to content

Commit

Permalink
mypy again (#8774)
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHug authored Dec 2, 2024
1 parent eedca60 commit 36e219b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchvision/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def draw_bounding_boxes(

if label is not None:
margin = width + 1
draw.text((bbox[0] + margin, bbox[1] + margin), label, fill=label_color, font=txt_font)
draw.text((bbox[0] + margin, bbox[1] + margin), label, fill=label_color, font=txt_font) # type: ignore[arg-type]

out = F.pil_to_tensor(img_to_draw)
if original_dtype.is_floating_point:
Expand Down

0 comments on commit 36e219b

Please sign in to comment.