Skip to content

Commit 36e219b

Browse files
authored
mypy again (#8774)
1 parent eedca60 commit 36e219b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: torchvision/utils.py

+1-1
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)