Skip to content

Commit

Permalink
Fix typing/linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Setsugennoao committed Nov 7, 2023
1 parent bd703fd commit 436e164
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions vskernels/kernels/bicubic.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
'Hermite',
'Mitchell',
'Catrom',
'FFmpegCubic',
'AdobeCubic',
'FFmpegBicubic',
'AdobeBicubic',
'BicubicSharp',
'RobidouxSoft',
'Robidoux',
Expand Down
3 changes: 2 additions & 1 deletion vskernels/kernels/complex.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ def _get_kwargs_keep_ar(

if None not in set(kwargs.get(x) for x in ('keep_ar', 'sar', 'dar')):
print(UserWarning(
f'{self.__class__.__name__}.scale: "keep_ar" set with non-None values set in "sar" and "dar" won\'t do anything!'
f'{self.__class__.__name__}.scale: "keep_ar" set '
'with non-None values set in "sar" and "dar" won\'t do anything!'
))

default_val = kwargs.pop('keep_ar')
Expand Down
5 changes: 4 additions & 1 deletion vskernels/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
from math import exp
from typing import Any

from vstools import CustomValueError, HoldsVideoFormatT, Matrix, MatrixT, Transfer, cachedproperty, depth, inject_self, vs, CustomRuntimeError, get_video_format
from vstools import (
CustomRuntimeError, CustomValueError, HoldsVideoFormatT, Matrix, MatrixT, Transfer, cachedproperty, depth,
get_video_format, inject_self, vs
)

from .kernels import Bicubic, Catrom, FmtConv, Impulse, Kernel, KernelT, Placebo, Point, Scaler
from .kernels.docs import Example
Expand Down

0 comments on commit 436e164

Please sign in to comment.