From 035c662020ec1e98ec25ab707a076e55791ae212 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 3 Feb 2022 17:14:01 -0800 Subject: small type annotation improvement (for newer mypy) --- grobid_tei_xml/types.py | 4 ++-- 1 file 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), -- cgit v1.2.3