Skip to content

Commit 84ff1c6

Browse files
Fix lint issues
1 parent bddc4d8 commit 84ff1c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torchvision/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,14 +359,14 @@ def draw_bounding_boxes(
359359
f"Number of boxes ({num_boxes}) and labels ({len(labels)}) mismatch. Please specify labels for each box."
360360
)
361361

362-
colors = _parse_colors(colors, num_objects=num_boxes)
362+
colors = _parse_colors(colors, num_objects=num_boxes) # type: ignore[assignment]
363363
if label_colors or fill_labels:
364364
label_colors = _parse_colors(label_colors if label_colors else "black", num_objects=num_boxes) # type: ignore[assignment]
365365
else:
366366
label_colors = colors.copy() # type: ignore[assignment]
367367

368368
if fill_labels and label_background_colors:
369-
label_background_colors = _parse_colors(label_background_colors, num_objects=num_boxes)
369+
label_background_colors = _parse_colors(label_background_colors, num_objects=num_boxes) # type: ignore[assignment]
370370
else:
371371
label_background_colors = colors.copy() # type: ignore[assignment]
372372

0 commit comments

Comments
 (0)