From cd839f199d0f97a1a7c2da5b796766ebe740813f Mon Sep 17 00:00:00 2001 From: Nicolas Hug Date: Mon, 2 Dec 2024 10:52:07 +0000 Subject: [PATCH] Fix mypy (#8772) --- torchvision/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/torchvision/utils.py b/torchvision/utils.py index 0c62db363f2..5974d94fef2 100644 --- a/torchvision/utils.py +++ b/torchvision/utils.py @@ -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: