diff options
author | Arun Isaac | 2021-12-23 13:58:07 +0530 |
---|---|---|
committer | Arun Isaac | 2021-12-23 13:58:07 +0530 |
commit | fa227ea35710658c7d8314315ee072a641c163f9 (patch) | |
tree | 7bf063d7751ff862a64ae3a13770a48daf89e7f1 /gn3/db | |
parent | 36cc8b1f837406d7002246c00d6054573687c472 (diff) | |
download | genenetwork3-fa227ea35710658c7d8314315ee072a641c163f9.tar.gz |
db: Assist mypy with explicit type declaration.
* gn3/db/datasets.py (dataset_metadata): Assist mypy by explicitly declaring
type of return dictionary.
Diffstat (limited to 'gn3/db')
-rw-r--r-- | gn3/db/datasets.py | 4 |
1 files changed, 2 insertions, 2 deletions
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)): |