Skip to content

Commit

Permalink
Fix from_param_or_video formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Setsugennoao committed Nov 18, 2023
1 parent 8f07d77 commit c594d9f
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions vstools/enums/stubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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:
...

Expand Down Expand Up @@ -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:
...

Expand Down Expand Up @@ -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:
...

Expand Down Expand Up @@ -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:
...

Expand Down Expand Up @@ -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:
...

Expand Down Expand Up @@ -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:
...

Expand Down

0 comments on commit c594d9f

Please sign in to comment.