Skip to content

Commit b22688a

Browse files
fix linting
1 parent 4db3c2e commit b22688a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

torchvision/transforms/v2/_meta.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ def __init__(self, clamping_mode: CLAMPING_MODE_TYPE) -> None:
8585

8686
_transformed_types = (tv_tensors.BoundingBoxes, tv_tensors.KeyPoints)
8787

88-
def transform(self, inpt: tv_tensors.TVTensor, params: dict[str, Any]) -> tv_tensors.TVTensor:
88+
def transform(
89+
self, inpt: tv_tensors.BoundingBoxes | tv_tensors.KeyPoints, params: dict[str, Any]
90+
) -> tv_tensors.BoundingBoxes | tv_tensors.KeyPoints:
8991
out: tv_tensors.TVTensor = inpt.clone() # type: ignore[assignment]
9092
out.clamping_mode = self.clamping_mode
9193
return out

0 commit comments

Comments
 (0)