Skip to content

Commit a7e8b79

Browse files
committed
types
1 parent 468f55b commit a7e8b79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchvision/tv_tensors/_bounding_boxes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class BoundingBoxFormat(Enum):
4040

4141
# TODO: Once torchscript supports Enums with staticmethod
4242
# this can be put into BoundingBoxFormat as staticmethod
43-
def is_rotated_bounding_format(format: Union[BoundingBoxFormat, str]) -> bool:
43+
def is_rotated_bounding_format(format: BoundingBoxFormat | str) -> bool:
4444
if isinstance(format, BoundingBoxFormat):
4545
return (
4646
format == BoundingBoxFormat.XYWHR

0 commit comments

Comments
 (0)