Skip to content

Commit

Permalink
handle lint and misc changes
Browse files Browse the repository at this point in the history
  • Loading branch information
moonsikpark committed Jun 26, 2024
1 parent 53b3c27 commit 7a6e7af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions av/filter/context.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from av.frame import Frame
from av.filter import Graph
from av.frame import Frame

from .pad import FilterContextPad

Expand All @@ -12,6 +12,7 @@ class FilterContext:
def link_to(
self, input_: FilterContext, output_idx: int = 0, input_idx: int = 0
) -> None: ...
@property
def graph(self) -> Graph: ...
def push(self, frame: Frame) -> None: ...
def pull(self) -> Frame: ...
def graph(self) -> Graph: ...
4 changes: 2 additions & 2 deletions av/filter/context.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ cdef class FilterContext:

@property
def graph(self):
if (gr := self._graph()):
return gr
if (graph := self._graph()):
return graph
else:
raise RuntimeError("graph is unallocated")

Expand Down

0 comments on commit 7a6e7af

Please sign in to comment.