Skip to content

Commit 4e786dd

Browse files
velsinkiWyattBlue
authored andcommitted
Allow None in FilterContext.push type stub
`None` is correctly handled to signify EOF to the buffer, but this should also be visible in the type stub.
1 parent 8485992 commit 4e786dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

av/filter/context.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class FilterContext:
1010
) -> None: ...
1111
@property
1212
def graph(self) -> Graph: ...
13-
def push(self, frame: Frame) -> None: ...
13+
def push(self, frame: Frame | None) -> None: ...
1414
def pull(self) -> Frame: ...
1515
def process_command(
1616
self, cmd: str, arg: str | None = None, res_len: int = 1024, flags: int = 0

0 commit comments

Comments
 (0)