From 9589a13aea77033bf81f4ad23b4c59d1ad9570b0 Mon Sep 17 00:00:00 2001 From: Setsugennoao Date: Thu, 16 May 2024 12:02:45 +0200 Subject: [PATCH] Fix formatting --- vskernels/kernels/abstract.py | 6 ++++-- vskernels/kernels/complex.py | 1 - vskernels/kernels/impulse.py | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/vskernels/kernels/abstract.py b/vskernels/kernels/abstract.py index 5b6ba04..f5f1750 100644 --- a/vskernels/kernels/abstract.py +++ b/vskernels/kernels/abstract.py @@ -142,8 +142,8 @@ def __init_subclass__(cls) -> None: if not _finished_loading_abstract: return - from .zimg import ZimgComplexKernel from ..util import abstract_kernels + from .zimg import ZimgComplexKernel if cls in abstract_kernels: return @@ -336,7 +336,9 @@ def resample( self, clip: vs.VideoNode, format: int | VideoFormatT | HoldsVideoFormatT, matrix: MatrixT | None = None, matrix_in: MatrixT | None = None, **kwargs: Any ) -> vs.VideoNode: - return self.resample_function(clip, **_norm_props_enums(self.get_resample_args(clip, format, matrix, matrix_in, **kwargs))) + return self.resample_function( + clip, **_norm_props_enums(self.get_resample_args(clip, format, matrix, matrix_in, **kwargs)) + ) def get_resample_args( self, clip: vs.VideoNode, format: int | VideoFormatT | HoldsVideoFormatT, diff --git a/vskernels/kernels/complex.py b/vskernels/kernels/complex.py index b554e87..39b3af0 100644 --- a/vskernels/kernels/complex.py +++ b/vskernels/kernels/complex.py @@ -219,7 +219,6 @@ def scale( # type: ignore[override] s + ((p - c) // 2) for s, c, p in zip(shift, *((x.width, x.height) for x in (clip, padded))) ), padded - clip = Scaler.scale(self, clip, width, height, shift, **kwargs) if const_size and out_sar: diff --git a/vskernels/kernels/impulse.py b/vskernels/kernels/impulse.py index deaef8b..e3388b6 100644 --- a/vskernels/kernels/impulse.py +++ b/vskernels/kernels/impulse.py @@ -44,7 +44,8 @@ def __init__(self, impulse: Sequence[float], oversample: int = 8, taps: float = @inject_self.cached @inject_kwargs_params def scale( # type: ignore[override] - self, clip: vs.VideoNode, width: int, height: int, shift: tuple[TopShift, LeftShift] = (-0.125, -0.125), **kwargs: Any + self, clip: vs.VideoNode, width: int, height: int, + shift: tuple[TopShift, LeftShift] = (-0.125, -0.125), **kwargs: Any ) -> vs.VideoNode: return super().scale(clip, width, height, shift, **kwargs)