diff options
author | Frederick Muriuki Muriithi | 2023-11-15 09:32:14 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-11-15 09:32:14 +0300 |
commit | 75e47d9642b9b734f17daa038318e55b6eaae675 (patch) | |
tree | d4c17e8b190cc92f2cc5459ab7f96cb736b007d5 /scripts/insert_data.py | |
parent | aae9d6d988867b9b3edba800857830b48668599c (diff) | |
download | gn-uploader-75e47d9642b9b734f17daa038318e55b6eaae675.tar.gz |
mypy: Fix typing errors.
Diffstat (limited to 'scripts/insert_data.py')
-rw-r--r-- | scripts/insert_data.py | 3 |
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: |