From baeeeb6da091bbaceb3ed9c68c1f8f0ad0e8fe4a Mon Sep 17 00:00:00 2001 From: Setsugennoao <41454651+Setsugennoao@users.noreply.github.com> Date: Wed, 7 Aug 2024 14:59:45 +0200 Subject: [PATCH] kwargs.pop => get for src_width/height args --- vskernels/types.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vskernels/types.py b/vskernels/types.py index 841a06c..b4fbd94 100644 --- a/vskernels/types.py +++ b/vskernels/types.py @@ -64,16 +64,16 @@ def __call__( def for_scale( self, clip: vs.VideoNode, width: int, height: int, shift: tuple[float, float], **kwargs: Any ) -> tuple[KwargsT, tuple[float, float]]: - src_width = kwargs.pop('src_width', width) - src_height = kwargs.pop('src_height', height) + src_width = kwargs.get('src_width', width) + src_height = kwargs.get('src_height', height) return self(src_width, src_height, width, height, shift) def for_descale( self, clip: vs.VideoNode, width: int, height: int, shift: tuple[float, float], **kwargs: Any ) -> tuple[KwargsT, tuple[float, float]]: - src_width = kwargs.pop('src_width', clip.width) - src_height = kwargs.pop('src_height', clip.height) + src_width = kwargs.get('src_width', clip.width) + src_height = kwargs.get('src_height', clip.height) return self(width, height, src_width, src_height, shift)