diff --git a/svgpathtools/document.py b/svgpathtools/document.py index 974b1f3..3b98599 100644 --- a/svgpathtools/document.py +++ b/svgpathtools/document.py @@ -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 """