From fa227ea35710658c7d8314315ee072a641c163f9 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Thu, 23 Dec 2021 13:58:07 +0530 Subject: db: Assist mypy with explicit type declaration. * gn3/db/datasets.py (dataset_metadata): Assist mypy by explicitly declaring type of return dictionary. --- gn3/db/datasets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gn3/db') diff --git a/gn3/db/datasets.py b/gn3/db/datasets.py index ca48156..a41e228 100644 --- a/gn3/db/datasets.py +++ b/gn3/db/datasets.py @@ -362,8 +362,8 @@ WHERE { OPTIONAL { ?dataset gn:acknowledgment ?acknowledgment . } } """] - result = {'accession_id': accession_id, - 'investigator': {}} + result: Dict[str, Any] = {'accession_id': accession_id, + 'investigator': {}} query_result = {} for query in queries: if sparql_result := sparql_query(Template(query).substitute(accession_id=accession_id)): -- cgit v1.2.3