Skip to content

Commit

Permalink
Fix mypy (#8772)
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHug authored Dec 2, 2024
1 parent 229d852 commit cd839f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torchvision/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,9 @@ def draw_bounding_boxes(

colors = _parse_colors(colors, num_objects=num_boxes)
if label_colors:
label_colors = _parse_colors(label_colors, num_objects=num_boxes)
label_colors = _parse_colors(label_colors, num_objects=num_boxes) # type: ignore[assignment]
else:
label_colors = colors.copy()
label_colors = colors.copy() # type: ignore[assignment]

if font is None:
if font_size is not None:
Expand Down

0 comments on commit cd839f1

Please sign in to comment.