From 75e47d9642b9b734f17daa038318e55b6eaae675 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 15 Nov 2023 09:32:14 +0300 Subject: mypy: Fix typing errors. --- scripts/insert_data.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts') 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: -- cgit v1.2.3