aboutsummaryrefslogtreecommitdiff
path: root/scripts/insert_data.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-11-15 09:32:14 +0300
committerFrederick Muriuki Muriithi2023-11-15 09:32:14 +0300
commit75e47d9642b9b734f17daa038318e55b6eaae675 (patch)
treed4c17e8b190cc92f2cc5459ab7f96cb736b007d5 /scripts/insert_data.py
parentaae9d6d988867b9b3edba800857830b48668599c (diff)
downloadgn-uploader-75e47d9642b9b734f17daa038318e55b6eaae675.tar.gz
mypy: Fix typing errors.
Diffstat (limited to 'scripts/insert_data.py')
-rw-r--r--scripts/insert_data.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/insert_data.py b/scripts/insert_data.py
index c5879ed..b3e9eea 100644
--- a/scripts/insert_data.py
+++ b/scripts/insert_data.py
@@ -138,7 +138,8 @@ def __format_query__(query, params):
"INSERT INTO ", "INSERT INTO\n\t")
return f"{insert_str}\nVALUES\n\t{values_str};"
-def __xref_params__(dbconn: mdb.Connection, means: list[dict]) -> dict:
+def __xref_params__(
+ dbconn: mdb.Connection, means: tuple[dict, ...]) -> tuple[dict, ...]:
"""Process params for cross-reference table."""
xref_names = tuple({mean["ProbeSetId"] for mean in means})
with dbconn.cursor(cursorclass=DictCursor) as cursor: