Skip to content

Commit

Permalink
Fix type of stdDeviation
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Hünnemeyer committed Feb 20, 2024
1 parent 9b8ce43 commit a963581
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions svg/_filters.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import annotations
from dataclasses import dataclass
from typing import TYPE_CHECKING, Any, Optional, Tuple
from typing import TYPE_CHECKING, Any, Optional, Tuple, Union

from . import _mixins as m
from ._transforms import Transform
Expand Down Expand Up @@ -249,7 +249,7 @@ class FeGaussianBlur(Element, m.FilterPrimitive):
https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feGaussianBlur
"""
element_name = "feGaussianBlur"
stdDeviation: Optional[Tuple[Number, Number]] = None
stdDeviation: Optional[Union[Number, Tuple[Number, Number]]] = None
edgeMode: Optional[Literal["duplicate", "wrap", "none"]] = None
in_: Optional[str] = None
color_interpolation_filters: Optional[Literal["auto", "sRGB", "linearRGB", "inherit"]] = None
Expand Down Expand Up @@ -324,7 +324,7 @@ class FeDropShadow(Element, m.FilterPrimitive):
dy: Optional[Any] = None
flood_opacity: Optional[Number] = None
flood_color: Optional[str] = None
stdDeviation: Optional[Tuple[Number, Number]] = None
stdDeviation: Optional[Union[Number, Tuple[Number, Number]]] = None
class_: Optional[list[str]] = None


Expand Down

0 comments on commit a963581

Please sign in to comment.