Skip to content

Commit f3cefdf

Browse files
committed
Reuse type.
1 parent 211f294 commit f3cefdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchvision/prototype/transforms/functional/_geometry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ def affine_mask(
403403
return output
404404

405405

406-
def _convert_fill_arg(fill: Optional[Union[int, float, Sequence[int], Sequence[float]]]) -> features.FillTypeJIT:
406+
def _convert_fill_arg(fill: features.FillType) -> features.FillTypeJIT:
407407
# Fill = 0 is not equivalent to None, https://github.com/pytorch/vision/issues/6517
408408
# So, we can't reassign fill to 0
409409
# if fill is None:

0 commit comments

Comments
 (0)