From 36e219bfa38eca99af48ed08046935eb44649da1 Mon Sep 17 00:00:00 2001 From: Nicolas Hug Date: Mon, 2 Dec 2024 13:37:52 +0000 Subject: [PATCH] mypy again (#8774) --- torchvision/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torchvision/utils.py b/torchvision/utils.py index 5974d94fef2..eb1ec2ccf65 100644 --- a/torchvision/utils.py +++ b/torchvision/utils.py @@ -260,7 +260,7 @@ def draw_bounding_boxes( if label is not None: margin = width + 1 - draw.text((bbox[0] + margin, bbox[1] + margin), label, fill=label_color, font=txt_font) + draw.text((bbox[0] + margin, bbox[1] + margin), label, fill=label_color, font=txt_font) # type: ignore[arg-type] out = F.pil_to_tensor(img_to_draw) if original_dtype.is_floating_point: