diff options
author | Bryan Newbold <bnewbold@archive.org> | 2022-02-03 17:14:01 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2022-02-03 17:14:01 -0800 |
commit | 035c662020ec1e98ec25ab707a076e55791ae212 (patch) | |
tree | ae887a3583b010e1e2a6d975bb2a317bbec3462a | |
parent | d59a5c856183a0343eaee8bc161edd28e3244583 (diff) | |
download | grobid_tei_xml-035c662020ec1e98ec25ab707a076e55791ae212.tar.gz grobid_tei_xml-035c662020ec1e98ec25ab707a076e55791ae212.zip |
small type annotation improvement (for newer mypy)
-rw-r--r-- | grobid_tei_xml/types.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/grobid_tei_xml/types.py b/grobid_tei_xml/types.py index 32b773b..4b83ff5 100644 --- a/grobid_tei_xml/types.py +++ b/grobid_tei_xml/types.py @@ -1,5 +1,5 @@ from dataclasses import asdict, dataclass -from typing import List, Optional +from typing import Any, Dict, List, Optional @dataclass @@ -161,7 +161,7 @@ class GrobidBiblio: Transforms in to Citation Style Language (CSL) JSON schema, as a dict (not an actual JSON string) """ - csl = dict( + csl: Dict[str, Any] = dict( type=default_type, author=[a.to_csl_dict() for a in self.authors], issued=_csl_date(self.date), |