Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Setsugennoao committed May 16, 2024
1 parent 491c754 commit 9589a13
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions vskernels/kernels/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion vskernels/kernels/complex.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion vskernels/kernels/impulse.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 9589a13

Please sign in to comment.