@@ -1951,7 +1951,14 @@ def apply_transform(
19511951 @returns: the path to the augmented video
19521952 """
19531953 return F .resize (
1954- video_path , output_path , self .height , self .width , metadata = metadata
1954+ # pyrefly: ignore [bad-argument-type]
1955+ video_path ,
1956+ output_path ,
1957+ # pyrefly: ignore [bad-argument-type]
1958+ self .height ,
1959+ # pyrefly: ignore [bad-argument-type]
1960+ self .width ,
1961+ metadata = metadata ,
19551962 )
19561963
19571964
@@ -2345,7 +2352,12 @@ def apply_random_transform(
23452352 @returns: the path to the augmented video
23462353 """
23472354 return F .change_aspect_ratio (
2348- video_path , output_path , ratio = self .chosen_value , metadata = metadata
2355+ # pyrefly: ignore [bad-argument-type]
2356+ video_path ,
2357+ output_path ,
2358+ # pyrefly: ignore [bad-argument-type]
2359+ ratio = self .chosen_value ,
2360+ metadata = metadata ,
23492361 )
23502362
23512363
@@ -2385,7 +2397,12 @@ def apply_random_transform(
23852397 @returns: the path to the augmented video
23862398 """
23872399 return F .blur (
2388- video_path , output_path , sigma = self .chosen_value , metadata = metadata
2400+ # pyrefly: ignore [bad-argument-type]
2401+ video_path ,
2402+ output_path ,
2403+ # pyrefly: ignore [bad-argument-type]
2404+ sigma = self .chosen_value ,
2405+ metadata = metadata ,
23892406 )
23902407
23912408
@@ -2427,6 +2444,7 @@ def apply_random_transform(
24272444 return F .brightness (
24282445 video_path ,
24292446 output_path ,
2447+ # pyrefly: ignore [bad-argument-type]
24302448 level = self .chosen_value ,
24312449 metadata = metadata ,
24322450 )
@@ -2468,7 +2486,12 @@ def apply_random_transform(
24682486 @returns: the path to the augmented video
24692487 """
24702488 return F .contrast (
2471- video_path , output_path , level = self .chosen_value , metadata = metadata
2489+ # pyrefly: ignore [bad-argument-type]
2490+ video_path ,
2491+ output_path ,
2492+ # pyrefly: ignore [bad-argument-type]
2493+ level = self .chosen_value ,
2494+ metadata = metadata ,
24722495 )
24732496
24742497
@@ -2577,6 +2600,7 @@ def apply_random_transform(
25772600 return F .encoding_quality (
25782601 video_path ,
25792602 output_path ,
2603+ # pyrefly: ignore [bad-argument-type]
25802604 quality = int (self .chosen_value ),
25812605 metadata = metadata ,
25822606 )
@@ -2617,6 +2641,7 @@ def apply_random_transform(
26172641
26182642 @returns: the path to the augmented video
26192643 """
2644+ # pyrefly: ignore [bad-argument-type]
26202645 return F .fps (video_path , output_path , fps = self .chosen_value , metadata = metadata )
26212646
26222647
@@ -2654,7 +2679,12 @@ def apply_random_transform(
26542679 @returns: the path to the augmented video
26552680 """
26562681 return F .add_noise (
2657- video_path , output_path , level = int (self .chosen_value ), metadata = metadata
2682+ # pyrefly: ignore [bad-argument-type]
2683+ video_path ,
2684+ output_path ,
2685+ # pyrefly: ignore [bad-argument-type]
2686+ level = int (self .chosen_value ),
2687+ metadata = metadata ,
26582688 )
26592689
26602690
@@ -2698,6 +2728,7 @@ def apply_random_transform(
26982728 return F .pixelization (
26992729 video_path ,
27002730 output_path ,
2731+ # pyrefly: ignore [bad-argument-type]
27012732 ratio = self .chosen_value ,
27022733 metadata = metadata ,
27032734 )
@@ -2737,7 +2768,12 @@ def apply_random_transform(
27372768 @returns: the path to the augmented video
27382769 """
27392770 return F .rotate (
2740- video_path , output_path , degrees = self .chosen_value , metadata = metadata
2771+ # pyrefly: ignore [bad-argument-type]
2772+ video_path ,
2773+ output_path ,
2774+ # pyrefly: ignore [bad-argument-type]
2775+ degrees = self .chosen_value ,
2776+ metadata = metadata ,
27412777 )
27422778
27432779
@@ -2781,5 +2817,10 @@ def apply_random_transform(
27812817 @returns: the path to the augmented video
27822818 """
27832819 return F .change_video_speed (
2784- video_path , output_path , factor = self .chosen_value , metadata = metadata
2820+ # pyrefly: ignore [bad-argument-type]
2821+ video_path ,
2822+ output_path ,
2823+ # pyrefly: ignore [bad-argument-type]
2824+ factor = self .chosen_value ,
2825+ metadata = metadata ,
27852826 )
0 commit comments