@@ -276,8 +276,8 @@ class Reuse(Feature):
276276 def __init__ (
277277 self : Reuse ,
278278 feature : Feature ,
279- uses : int = 2 ,
280- storage :int = 1 ,
279+ uses : PropertyLike [ int ] = 2 ,
280+ storage : PropertyLike [ int ] = 1 ,
281281 ** kwargs
282282 ):
283283 super ().__init__ (uses = uses , storage = storage , ** kwargs )
@@ -288,8 +288,8 @@ def __init__(
288288 def get (
289289 self : Reuse ,
290290 image : Image | np .ndarray ,
291- uses : PropertyLike [ int ] ,
292- storage : PropertyLike [ int ] ,
291+ uses : int ,
292+ storage : int ,
293293 ** kwargs
294294 ) -> list [Image ]:
295295 """Abstract method which performs the `Reuse` augmentation.
@@ -365,7 +365,7 @@ def __init__(
365365 def get (
366366 self : FlipLR ,
367367 image : Image | np .ndarray ,
368- augment : PropertyLike [ bool ] ,
368+ augment : bool ,
369369 ** kwargs
370370 ) -> Image :
371371 """Abstract method which performs the `FlipLR` augmentation.
@@ -379,7 +379,7 @@ def get(
379379 def update_properties (
380380 self : FlipLR ,
381381 image : Image | np .ndarray ,
382- augment : PropertyLike [ bool ] ,
382+ augment : bool ,
383383 ** kwargs
384384 ) -> None :
385385 """Abstract method to update the properties of the image.
@@ -419,7 +419,7 @@ class FlipUD(Augmentation):
419419
420420 def __init__ (
421421 self : FlipUD ,
422- p : float = 0.5 ,
422+ p : PropertyLike [ float ] = 0.5 ,
423423 augment : PropertyLike [bool ] = None ,
424424 ** kwargs
425425 ) -> None :
@@ -434,7 +434,7 @@ def __init__(
434434 def get (
435435 self : FlipUD ,
436436 image : Image | np .ndarray ,
437- augment : PropertyLike [ bool ] ,
437+ augment : bool ,
438438 ** kwargs
439439 ) -> Image :
440440 """Abstract method which performs the `FlipUD` augmentation.
@@ -448,7 +448,7 @@ def get(
448448 def update_properties (
449449 self : FlipUD ,
450450 image : Image | np .ndarray ,
451- augment : PropertyLike [ bool ] ,
451+ augment : bool ,
452452 ** kwargs
453453 ) -> None :
454454 """Abstract method to update the properties of the image.
@@ -503,7 +503,7 @@ def __init__(
503503 def get (
504504 self : FlipDiagonal ,
505505 image : Image | np .ndarray ,
506- augment : PropertyLike [ bool ] ,
506+ augment : bool ,
507507 ** kwargs
508508 ) -> Image :
509509 """Abstract method which performs the `FlipDiagonal` augmentation.
@@ -516,7 +516,7 @@ def get(
516516 def update_properties (
517517 self : FlipDiagonal ,
518518 image : Image | np .ndarray ,
519- augment : PropertyLike [ bool ] ,
519+ augment : bool ,
520520 ** kwargs
521521 ) -> None :
522522 """Abstract method to update the properties of the image.
@@ -649,10 +649,10 @@ def _process_properties(
649649 def get (
650650 self : Affine ,
651651 image : Image | np .ndarray ,
652- scale : PropertyLike [ float ] ,
653- translate : PropertyLike [ float ] ,
654- rotate : PropertyLike [ float ] ,
655- shear : PropertyLike [ float ] ,
652+ scale : float ,
653+ translate : float ,
654+ rotate : float ,
655+ shear : float ,
656656 ** kwargs
657657 ) -> Image :
658658 """Abstract method which performs the `Affine` augmentation.
@@ -830,9 +830,9 @@ def __init__(
830830 def get (
831831 self : ElasticTransformation ,
832832 image : Image | np .ndarray ,
833- sigma : PropertyLike [ float ] ,
834- alpha : PropertyLike [ float ] ,
835- ignore_last_dim : PropertyLike [ bool ] ,
833+ sigma : float ,
834+ alpha : float ,
835+ ignore_last_dim : bool ,
836836 ** kwargs
837837 ) -> Image :
838838 """Abstract method which performs the `ElasticTransformation` augmentation.
@@ -940,9 +940,9 @@ def __init__(
940940 def get (
941941 self : Crop ,
942942 image : Image | np .ndarray ,
943- corner : PropertyLike [ str ] ,
943+ corner : str ,
944944 crop : int | list [int ] | tuple [int ],
945- crop_mode : PropertyLike [ str ] ,
945+ crop_mode : str ,
946946 ** kwargs
947947 ) -> Image :
948948 """Abstract method which performs the `Crop` augmentation.
@@ -1033,7 +1033,7 @@ class CropToMultiplesOf(Crop):
10331033
10341034 def __init__ (
10351035 self : CropToMultiplesOf ,
1036- multiple : int | tuple [int ] | tuple [None ] = 1 ,
1036+ multiple : PropertyLike [ int | tuple [int ] | tuple [None ] ] = 1 ,
10371037 corner : PropertyLike [str ] = "random" ,
10381038 ** kwargs
10391039 ) -> None :
@@ -1098,7 +1098,7 @@ def __init__(
10981098 def get (
10991099 self : CropTight ,
11001100 image : Image | np .ndarray ,
1101- eps : PropertyLike [ float ] ,
1101+ eps : float ,
11021102 ** kwargs
11031103 ) -> Image :
11041104 """Abstract method which performs the `CropTight` augmentation.
@@ -1160,7 +1160,7 @@ def __init__(
11601160 def get (
11611161 self : Pad ,
11621162 image : Image | np .ndarray ,
1163- px : PropertyLike [ int ] ,
1163+ px : int ,
11641164 ** kwargs
11651165 ) -> Image :
11661166 """Abstract method which performs the `Pad` augmentation.
0 commit comments