From 2fc016d48ff9ef3412d4720a9d2cafc60770fb57 Mon Sep 17 00:00:00 2001 From: FlyingSamson Date: Wed, 25 May 2022 17:58:14 +0200 Subject: [PATCH] Make factory method a classmethod --- svgpathtools/document.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 """