From 1fcd19dc11a7b3b0e8c9020b7d1c2db4b62091f3 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 27 Oct 2021 14:55:15 -0700 Subject: replace classmethods with staticmethods --- fatcat_scholar/schema.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fatcat_scholar/schema.py') diff --git a/fatcat_scholar/schema.py b/fatcat_scholar/schema.py index 569cc10..901379a 100644 --- a/fatcat_scholar/schema.py +++ b/fatcat_scholar/schema.py @@ -47,8 +47,8 @@ class IntermediateBundle(BaseModel): datetime.datetime: lambda dt: dt.isoformat(), } - @classmethod - def from_json(cls, obj: Dict[Any, Any]) -> "IntermediateBundle": + @staticmethod + def from_json(obj: Dict[Any, Any]) -> "IntermediateBundle": return IntermediateBundle( doc_type=DocType(obj.get("doc_type")), releases=[ -- cgit v1.2.3