Make factory method a classmethod

pull/176/head
FlyingSamson 2022-05-25 17:58:14 +02:00
parent aacd5fa96d
commit 2fc016d48f
1 changed files with 2 additions and 2 deletions

View File

@ -258,8 +258,8 @@ class Document:
self.root = self.tree.getroot()
@staticmethod
def from_svg_string(svg_string):
@classmethod
def from_svg_string(cls, svg_string):
"""Factory method for creating a document from a string holding a svg
object
"""