From a3005cf554449fbeb277e45eb5378167798b1d40 Mon Sep 17 00:00:00 2001 From: Hamid Zare <12127420+hamidzr@users.noreply.github.com> Date: Thu, 13 Apr 2023 19:23:31 -0400 Subject: [PATCH] chore: address mypy lint warnings [DET-9334] (#6549) --- tools/scripts/replicate-metrics.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/scripts/replicate-metrics.py b/tools/scripts/replicate-metrics.py index f5b03990776..fa9b5159e0d 100755 --- a/tools/scripts/replicate-metrics.py +++ b/tools/scripts/replicate-metrics.py @@ -23,7 +23,7 @@ # a class extending psycopg.Cursor that adds logging around each query execute. -class LoggingCursor(psycopg.Cursor): +class LoggingCursor(psycopg.Cursor): # type: ignore def execute(self, query: Query, *args: Any, **kwargs: Any) -> "LoggingCursor": print( f"""====QUERY START==== @@ -58,7 +58,7 @@ def get_table_col_names(table: str) -> Set[str]: """ SELECT column_name FROM information_schema.columns WHERE table_name = %s """, - (table,), # type: ignore + (table,), ) rows = cur.fetchall() return {row[0] for row in rows} @@ -113,7 +113,7 @@ def copy_trial(trial_id: int) -> None: FROM replicated_trials rt JOIN raw_validations rv ON rv.trial_id = %s; """ - cur.execute(query, (trial_id, trial_id, trial_id)) # type: ignore + cur.execute(query, (trial_id, trial_id, trial_id)) cur.execute("COMMIT")