Skip to content

Commit

Permalink
Fix colorspace signature
Browse files Browse the repository at this point in the history
  • Loading branch information
laggykiller authored and WyattBlue committed Mar 9, 2024
1 parent 9ad1d91 commit bd6104a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions av/video/frame.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ from av.frame import Frame

from .format import VideoFormat
from .plane import VideoPlane
from .reformatter import ColorRange, Colorspace

_SupportedNDarray = Union[
np.ndarray[Any, np.dtype[np.uint8]],
Expand Down Expand Up @@ -47,8 +46,8 @@ class VideoFrame(Frame):
width: int | None = None,
height: int | None = None,
format: str | None = None,
src_colorspace: Colorspace | None = None,
dst_colorspace: Colorspace | None = None,
src_colorspace: int | None = None,
dst_colorspace: int | None = None,
interpolation: int | str | None = None,
src_color_range: int | str | None = None,
dst_color_range: int | str | None = None,
Expand Down
4 changes: 2 additions & 2 deletions av/video/reformatter.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ class VideoReformatter:
width: int | None = None,
height: int | None = None,
format: str | None = None,
src_colorspace: Colorspace | None = None,
dst_colorspace: Colorspace | None = None,
src_colorspace: int | None = None,
dst_colorspace: int | None = None,
interpolation: int | str | None = None,
src_color_range: int | str | None = None,
dst_color_range: int | str | None = None,
Expand Down

0 comments on commit bd6104a

Please sign in to comment.