summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/schema.py
diff options
context:
space:
mode:
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=[