Skip to content

Commit 9f25e04

Browse files
authored
Merge pull request #35 from chowette/master
Change "content" attribute of ForeignObject from str to Literal
2 parents 9e3bece + b7898b5 commit 9f25e04

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

svg/elements.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ class Desc(Element, m.GraphicsElementEvents):
205205
https://developer.mozilla.org/en-US/docs/Web/SVG/Element/desc
206206
"""
207207
element_name = "desc"
208-
content: str | None = None
209208
class_: list[str] | None = None
210209

211210

@@ -216,7 +215,6 @@ class Title(Element, m.GraphicsElementEvents):
216215
https://developer.mozilla.org/en-US/docs/Web/SVG/Element/title
217216
"""
218217
element_name = "title"
219-
content: str | None = None
220218
class_: list[str] | None = None
221219

222220

@@ -817,7 +815,6 @@ class ForeignObject(Element, m.Color, m.GraphicsElementEvents, m.Graphics):
817815
y: Length | Number | None = None
818816
width: Length | Number | None = None
819817
height: Length | Number | None = None
820-
content: str | None = None
821818
class_: list[str] | None = None
822819
vector_effect: Literal["none", "non-scaling-stroke", "non-scaling-size", "non-rotation", "fixed-position"] | None = None
823820
visibility: Literal["visible", "hidden", "inherit"] | None = None

0 commit comments

Comments
 (0)