From 0c39447f46ca02c7d686c305df14795d9b0fefee Mon Sep 17 00:00:00 2001 From: Mohammad Amin Date: Mon, 19 Feb 2024 10:32:02 +0330 Subject: [PATCH] fix: trying to fix mypy linter error! fixing no-redef error. --- utils/query_engine/level_based_platforms_util.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/query_engine/level_based_platforms_util.py b/utils/query_engine/level_based_platforms_util.py index 1a7abfb..78762fe 100644 --- a/utils/query_engine/level_based_platforms_util.py +++ b/utils/query_engine/level_based_platforms_util.py @@ -116,7 +116,7 @@ def prepare_context_str_based_on_summaries( summary_node = summary_nodes[0] if level1_title != "None" and level2_title != "None": - node_context: str = ( + node_context = ( f"{self.level1_key}: {level1_title}\n" f"{self.level2_key}: {level2_title}\n" f"{self.date_key}: {date}\n" @@ -126,7 +126,7 @@ def prepare_context_str_based_on_summaries( elif level1_title == "None": # if it was None, then we would say it is the main level2_key # e.g.: for the thread in discord we would say the main channel - node_context: str = ( + node_context = ( f"{self.level1_key}: main {self.level2_key}\n" f"{self.level2_key}: {level2_title}\n" f"{self.date_key}: {date}\n" @@ -135,7 +135,7 @@ def prepare_context_str_based_on_summaries( ) elif level2_title == "None": # if it was None, then we would say it is the main level1_key - node_context: str = ( + node_context = ( f"{self.level1_key}: {level1_title}\n" f"{self.level2_key}: main {self.level1_key}\n" f"{self.date_key}: {date}\n"