Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

Fixed static check

Jian S02af9f73dc7e
diff --git a/kornia/augmentation/random_generator3d.py b/kornia/augmentation/random_generator3d.py
index 174cd81e1..115b0906d 100644
--- a/kornia/augmentation/random_generator3d.py
+++ b/kornia/augmentation/random_generator3d.py
@@ -133,7 +133,7 @@ def _get_random_affine_params(
degrees: torch.Tensor,
translate: Optional[Tuple[float, float, float]],
scales: Optional[Tuple[float, float]],
- shears: torch.Tensor = None,
+ shears: Optional[torch.Tensor] = None,
resample: Union[str, int, Resample] = Resample.BILINEAR.name,
same_on_batch: bool = False,
align_corners: bool = False