aboutsummaryrefslogtreecommitdiff
path: root/gn3/db
diff options
context:
space:
mode:
authorMunyoki Kilyungi2023-10-26 18:06:36 +0300
committerBonfaceKilz2023-10-27 13:45:32 +0300
commitce5bf0be820ddcca1eadac3b22cb48a03b7e7f0d (patch)
treea5d14eb4c08efbe61ac1e102e7296effe6057b24 /gn3/db
parentb25a764081ed6694ef3745fd761d97118c7f9f0e (diff)
downloadgenenetwork3-ce5bf0be820ddcca1eadac3b22cb48a03b7e7f0d.tar.gz
Ignore construct result for mypy compliance
This commit addresses the mypy issue below by ignoring the construct result. ``` error: Item "None" of "bytes | str | dict[Any, Any] | Graph | Document | None" has no attribute "serialize" [union-attr] ```
Diffstat (limited to 'gn3/db')
-rw-r--r--gn3/db/rdf.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/db/rdf.py b/gn3/db/rdf.py
index 017e687..fec5539 100644
--- a/gn3/db/rdf.py
+++ b/gn3/db/rdf.py
@@ -42,4 +42,4 @@ def sparql_construct_query(query: str, endpoint: str) -> dict:
sparql = SPARQLWrapper(endpoint)
sparql.setQuery(query)
results = sparql.queryAndConvert()
- return json.loads(results.serialize(format="json-ld"))
+ return json.loads(results.serialize(format="json-ld")) # type: ignore