aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBonfaceKilz2022-06-20 17:20:26 +0300
committerBonfaceKilz2022-06-21 11:04:33 +0300
commitb985c411980660fd0ce73d7a9be5cb7599f7eb5f (patch)
treed6561c6df009ca730f4d7665268b50c3f94b961e
parent493a2140f0e57eddfb3be899a14e5936b8945fa6 (diff)
downloadgenenetwork3-b985c411980660fd0ce73d7a9be5cb7599f7eb5f.tar.gz
db: datasets.py: Ignore results from sparql.queryAndConvert
ATM, it's very difficult to work the correct type that is returned. Ignore this for now and fix this later.
-rw-r--r--gn3/db/datasets.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/db/datasets.py b/gn3/db/datasets.py
index b19db53..1d2f071 100644
--- a/gn3/db/datasets.py
+++ b/gn3/db/datasets.py
@@ -270,7 +270,7 @@ def sparql_query(query: str) -> List[Dict[str, Any]]:
sparql = SPARQLWrapper(SPARQL_ENDPOINT)
sparql.setQuery(query)
sparql.setReturnFormat(JSON)
- return sparql.queryAndConvert()['results']['bindings']
+ return sparql.queryAndConvert()['results']['bindings'] # type: ignore
def dataset_metadata(accession_id: str) -> Optional[Dict[str, Any]]:
"""Return info about dataset with ACCESSION_ID."""