Skip to content

Commit d5506ab

Browse files
NicolasHugfacebook-github-bot
authored andcommitted
[fbsync] mypy again (#8774)
Reviewed By: vmoens Differential Revision: D68021969 fbshipit-source-id: 755645b24294dc654b02928ffa3d882d9502b77f
1 parent 749c72d commit d5506ab

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
@@ -260,7 +260,7 @@ def draw_bounding_boxes(
260260

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

265265
out = F.pil_to_tensor(img_to_draw)
266266
if original_dtype.is_floating_point:

0 commit comments

Comments
 (0)