Skip to content

Commit

Permalink
Fix keep_ar not being a bool
Browse files Browse the repository at this point in the history
  • Loading branch information
Setsugennoao committed Nov 5, 2023
1 parent ef5089a commit 92faa41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vskernels/kernels/complex.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def descale( # type: ignore[override]

class KeepArScaler(Scaler):
def _get_kwargs_keep_ar(
self, sar: Sar | float | bool | None = None, dar: Dar | float | bool | None = None, keep_ar: bool | None = None,
self, sar: Sar | float | bool | None = None, dar: Dar | float | bool | None = None, keep_ar: bool = False,
**kwargs: Any
) -> KwargsT:
kwargs = KwargsT(keep_ar=keep_ar, sar=sar, dar=dar) | kwargs
Expand Down Expand Up @@ -156,7 +156,7 @@ def _handle_crop_resize_kwargs( # type: ignore[override]
@inject_self.cached
def scale( # type: ignore[override]
self, clip: vs.VideoNode, width: int, height: int, shift: tuple[float, float] = (0, 0), *,
sar: Sar | float | bool | None = None, dar: Dar | float | bool | None = None, keep_ar: bool | None = None,
sar: Sar | float | bool | None = None, dar: Dar | float | bool | None = None, keep_ar: bool = False,
**kwargs: Any
) -> vs.VideoNode:
check_correct_subsampling(clip, width, height)
Expand All @@ -181,7 +181,7 @@ class ComplexScaler(LinearScaler, KeepArScaler):
def scale( # type: ignore[override]
self, clip: vs.VideoNode, width: int, height: int, shift: tuple[float, float] = (0, 0),
*,
sar: Sar | bool | float | None = None, dar: Dar | bool | float | None = None, keep_ar: bool | None = None,
sar: Sar | bool | float | None = None, dar: Dar | bool | float | None = None, keep_ar: bool = False,
linear: bool = False, sigmoid: bool | tuple[float, float] = False,
**kwargs: Any
) -> vs.VideoNode:
Expand Down

0 comments on commit 92faa41

Please sign in to comment.