Skip to content

Commit

Permalink
fix: trying to fix mypy linter error!
Browse files Browse the repository at this point in the history
fixing no-redef error.
  • Loading branch information
amindadgar committed Feb 19, 2024
1 parent 9bd71eb commit 0c39447
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/query_engine/level_based_platforms_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit 0c39447

Please sign in to comment.