summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/schema.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-10-27 14:55:15 -0700
committerBryan Newbold <bnewbold@archive.org>2021-10-27 18:25:58 -0700
commit1fcd19dc11a7b3b0e8c9020b7d1c2db4b62091f3 (patch)
tree865e083fad3a2e601c0f939503a7b015d8a6fa0a /fatcat_scholar/schema.py
parenteb0c866d4e226606fe86e0f90af10c776e664a5c (diff)
downloadfatcat-scholar-1fcd19dc11a7b3b0e8c9020b7d1c2db4b62091f3.tar.gz
fatcat-scholar-1fcd19dc11a7b3b0e8c9020b7d1c2db4b62091f3.zip
replace classmethods with staticmethods
Diffstat (limited to 'fatcat_scholar/schema.py')
-rw-r--r--fatcat_scholar/schema.py4
1 files changed, 2 insertions, 2 deletions
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=[