Skip to content

Commit

Permalink
fix kwargs not being initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
Ichunjo authored and LightArrowsEXE committed Nov 10, 2024
1 parent 82ab7fe commit c70e76d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions vsmasktools/edge/_3x3.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,12 +320,16 @@ def _compute_edge_mask(self, clip: vs.VideoNode, **kwargs: Any) -> vs.VideoNode:


# Misc
@dataclass
class MinMax(EdgeDetect):
"""Min/max mask with separate luma/chroma radii."""

rady: int = 2
radc: int = 0
rady: int
radc: int

def __init__(self, rady: int = 2, radc: int = 0, **kwargs: Any) -> None:
self.rady = rady
self.radc = radc
super().__init__(**kwargs)

def _compute_edge_mask(self, clip: vs.VideoNode, **kwargs: Any) -> vs.VideoNode:
assert clip.format
Expand Down

0 comments on commit c70e76d

Please sign in to comment.