typing: Avoid redefinition of variables with different types.

Signed-off-by: Zixuan James Li <p359101898@gmail.com>
This commit is contained in:
Zixuan James Li
2022-06-14 22:24:28 -04:00
committed by Tim Abbott
parent 5fd278bf09
commit c567e44408
5 changed files with 26 additions and 24 deletions

View File

@@ -120,11 +120,12 @@ def exclude_topic_mutes(
# by not considering topic mutes outside the stream.
query = query.filter(stream_id=stream_id)
query = query.values(
"recipient_id",
"topic_name",
rows = list(
query.values(
"recipient_id",
"topic_name",
)
)
rows = list(query)
if not rows:
return conditions