From c594d9f7dabc9fed84cb4baaff9533a41640a576 Mon Sep 17 00:00:00 2001 From: Setsugennoao <41454651+Setsugennoao@users.noreply.github.com> Date: Sun, 19 Nov 2023 00:48:20 +0100 Subject: [PATCH] Fix from_param_or_video formatting --- vstools/enums/stubs.py | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/vstools/enums/stubs.py b/vstools/enums/stubs.py index 70ee1f7d..d02dd22c 100644 --- a/vstools/enums/stubs.py +++ b/vstools/enums/stubs.py @@ -86,7 +86,8 @@ def from_video( @classmethod def from_param_or_video( cls: type[SelfPropEnum], value: Any, - src: vs.VideoNode | vs.VideoFrame | vs.FrameProps, strict: bool = False, func_except: FuncExceptT | None = None + src: vs.VideoNode | vs.VideoFrame | vs.FrameProps, + strict: bool = False, func_except: FuncExceptT | None = None ) -> SelfPropEnum: value = cls.from_param(value, func_except) @@ -205,7 +206,8 @@ def from_param(cls: Any, value: Any, func_except: Any = None) -> Matrix | None: @classmethod def from_param_or_video( # type: ignore cls: type[Matrix], value: int | Matrix | MatrixT | None, - src: vs.VideoNode | vs.VideoFrame | vs.FrameProps, strict: bool = False, func_except: FuncExceptT | None = None + src: vs.VideoNode | vs.VideoFrame | vs.FrameProps, + strict: bool = False, func_except: FuncExceptT | None = None ) -> Matrix: ... @@ -248,7 +250,8 @@ def from_param(cls: Any, value: Any, func_except: Any = None) -> Transfer | None @classmethod def from_param_or_video( # type: ignore cls: type[Transfer], value: int | Transfer | TransferT | None, - src: vs.VideoNode | vs.VideoFrame | vs.FrameProps, strict: bool = False, func_except: FuncExceptT | None = None + src: vs.VideoNode | vs.VideoFrame | vs.FrameProps, + strict: bool = False, func_except: FuncExceptT | None = None ) -> Transfer: ... @@ -291,7 +294,8 @@ def from_param(cls: Any, value: Any, func_except: Any = None) -> Primaries | Non @classmethod def from_param_or_video( # type: ignore cls: type[Primaries], value: int | Primaries | PrimariesT | None, - src: vs.VideoNode | vs.VideoFrame | vs.FrameProps, strict: bool = False, func_except: FuncExceptT | None = None + src: vs.VideoNode | vs.VideoFrame | vs.FrameProps, + strict: bool = False, func_except: FuncExceptT | None = None ) -> Primaries: ... @@ -334,7 +338,8 @@ def from_param(cls: Any, value: Any, func_except: Any = None) -> ColorRange | No @classmethod def from_param_or_video( # type: ignore cls: type[ColorRange], value: int | ColorRange | ColorRangeT | None, - src: vs.VideoNode | vs.VideoFrame | vs.FrameProps, strict: bool = False, func_except: FuncExceptT | None = None + src: vs.VideoNode | vs.VideoFrame | vs.FrameProps, + strict: bool = False, func_except: FuncExceptT | None = None ) -> ColorRange: ... @@ -379,7 +384,8 @@ def from_param(cls: Any, value: Any, func_except: Any = None) -> ChromaLocation @classmethod def from_param_or_video( # type: ignore cls: type[ChromaLocation], value: int | ChromaLocation | ChromaLocationT | None, - src: vs.VideoNode | vs.VideoFrame | vs.FrameProps, strict: bool = False, func_except: FuncExceptT | None = None + src: vs.VideoNode | vs.VideoFrame | vs.FrameProps, + strict: bool = False, func_except: FuncExceptT | None = None ) -> ChromaLocation: ... @@ -423,7 +429,8 @@ def from_param(cls: Any, value: Any, func_except: Any = None) -> FieldBased | No @classmethod def from_param_or_video( # type: ignore cls: type[FieldBased], value_or_tff: int | FieldBasedT | bool | None, - src: vs.VideoNode | vs.VideoFrame | vs.FrameProps, strict: bool = False, func_except: FuncExceptT | None = None + src: vs.VideoNode | vs.VideoFrame | vs.FrameProps, + strict: bool = False, func_except: FuncExceptT | None = None ) -> FieldBased: ...