aboutsummaryrefslogtreecommitdiff
path: root/scripts/index-genenetwork
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-07-03 15:10:24 +0300
committerBonfaceKilz2024-07-03 16:53:31 +0300
commit1dc6d62ec211b7ce1373bc4a0521037886523058 (patch)
tree68b45b9d8a38cc9ce7f1c04ebaaaf32692360719 /scripts/index-genenetwork
parent814db45bd13abe2f2da74b2c4228449e7e885736 (diff)
downloadgenenetwork3-1dc6d62ec211b7ce1373bc4a0521037886523058.tar.gz
Add type-hints to hash_generif_graph.
* scripts/index-genenetwork (hash_generif_graph): Add proper type hints. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'scripts/index-genenetwork')
-rwxr-xr-xscripts/index-genenetwork2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/index-genenetwork b/scripts/index-genenetwork
index 441b8b2..219858c 100755
--- a/scripts/index-genenetwork
+++ b/scripts/index-genenetwork
@@ -240,7 +240,7 @@ def build_rdf_cache(sparql_uri: str, query: str, remove_common_words: bool = Fal
return smaller_cache
-def hash_generif_graph(generif_file: str):
+def hash_generif_graph(generif_file: pathlib.Path) -> str:
with open(generif_file, encoding="utf-8") as f_:
data = f_.read()
return hashlib.md5(data.encode()).hexdigest()