Skip to content

Commit cd839f1

Browse files
authored
Fix mypy (#8772)
1 parent 229d852 commit cd839f1

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
@@ -224,9 +224,9 @@ def draw_bounding_boxes(
224224

225225
colors = _parse_colors(colors, num_objects=num_boxes)
226226
if label_colors:
227-
label_colors = _parse_colors(label_colors, num_objects=num_boxes)
227+
label_colors = _parse_colors(label_colors, num_objects=num_boxes) # type: ignore[assignment]
228228
else:
229-
label_colors = colors.copy()
229+
label_colors = colors.copy() # type: ignore[assignment]
230230

231231
if font is None:
232232
if font_size is not None:

0 commit comments

Comments
 (0)