From 1dc6d62ec211b7ce1373bc4a0521037886523058 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Wed, 3 Jul 2024 15:10:24 +0300 Subject: Add type-hints to hash_generif_graph. * scripts/index-genenetwork (hash_generif_graph): Add proper type hints. Signed-off-by: Munyoki Kilyungi --- scripts/index-genenetwork | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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() -- cgit v1.2.3