aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
authorArun Isaac2021-12-23 13:58:07 +0530
committerArun Isaac2021-12-23 13:58:07 +0530
commitfa227ea35710658c7d8314315ee072a641c163f9 (patch)
tree7bf063d7751ff862a64ae3a13770a48daf89e7f1 /gn3
parent36cc8b1f837406d7002246c00d6054573687c472 (diff)
downloadgenenetwork3-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')
-rw-r--r--gn3/db/datasets.py4
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)):