From c11d7605f99a9cb901265dc02729c346338ea709 Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Tue, 21 Jun 2022 10:51:22 +0300 Subject: db: correlations: Ignore types * gn3/db/correlations.py (__build_query__): Ignore the "sample_ids" and "joins" types when calling build_query_sgo_lit_corr (fetch_all_database_data): Ignore the return type. TODO: Ping Alex/Arun to fix this. --- gn3/db/correlations.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gn3/db/correlations.py b/gn3/db/correlations.py index 07eaa56..ba61bb0 100644 --- a/gn3/db/correlations.py +++ b/gn3/db/correlations.py @@ -502,7 +502,11 @@ def __build_query__( for item in sample_ids) if method.lower() == "sgo literature correlation": return build_query_sgo_lit_corr( - sample_ids, temp_table, sample_id_columns, joins) + sample_ids, # type: ignore + temp_table, + sample_id_columns, + joins # type: ignore + ) if method.lower() in ( "tissue correlation, pearson's r", "tissue correlation, spearman's rho"): @@ -580,4 +584,4 @@ def fetch_all_database_data(# pylint: disable=[R0913, R0914] with conn.cursor() as cursor: cursor.execute(f"DROP TEMPORARY TABLE {temp_table}") - return (trait_database[0], trait_database[1]) + return (trait_database[0], trait_database[1]) # type: ignore -- cgit v1.2.3