Skip to content

Commit 84857fb

Browse files
fix mypy linting error
1 parent 84ff1c6 commit 84857fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchvision/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ def draw_bounding_boxes(
404404
if fill_labels:
405405
left, top, right, bottom = draw.textbbox((bbox[0] + margin, bbox[1] + margin), label, font=txt_font)
406406
draw.rectangle(
407-
(left - box_margin, top - box_margin, right + box_margin, bottom + box_margin), fill=label_bg_color
407+
(left - box_margin, top - box_margin, right + box_margin, bottom + box_margin), fill=label_bg_color # type: ignore[arg-type]
408408
)
409409
draw.text((bbox[0] + margin, bbox[1] + margin), label, fill=label_color, font=txt_font) # type: ignore[arg-type]
410410

0 commit comments

Comments
 (0)