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 f2f9241
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion av/filter/context.pxd
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
cimport libav as lib

from av.filter.filter cimport Filter
from av.filter.graph cimport Graph


cdef class FilterContext:
Expand Down
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 f2f9241

Please sign in to comment.