From 22cc52f47e94b7cebdca89f011cccd9eeccd4b6b Mon Sep 17 00:00:00 2001 From: laggykiller Date: Tue, 5 Mar 2024 11:41:53 +0800 Subject: [PATCH] FIx typing for OutputContainer.add_stream --- av/container/output.pyi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/av/container/output.pyi b/av/container/output.pyi index 3d01e0e3c..0400dadbb 100644 --- a/av/container/output.pyi +++ b/av/container/output.pyi @@ -10,10 +10,10 @@ class OutputContainer(Container): def __enter__(self) -> OutputContainer: ... def add_stream( self, - codec_name: str, - rate: Fraction | int | float, - template: Stream, - options: dict[str, str], + codec_name: str | None = None, + rate: Fraction | int | float | None = None, + template: Stream | None = None, + options: dict[str, str] | None = None, ) -> Stream: ... def start_encoding(self) -> None: ... def close(self) -> None: ...