python: Reformat with Black, except quotes.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-02-11 23:19:30 -08:00
committed by Tim Abbott
parent 5028c081cb
commit 11741543da
817 changed files with 44952 additions and 24860 deletions

View File

@@ -7,12 +7,12 @@ from zerver.models import MutedTopic
class StreamTopicTarget:
'''
"""
This class is designed to help us move to a
StreamTopic table or something similar. It isolates
places where we are are still using `topic_name` as
a key into tables.
'''
"""
def __init__(self, stream_id: int, topic_name: str) -> None:
self.stream_id = stream_id
@@ -25,10 +25,7 @@ class StreamTopicTarget:
).values(
'user_profile_id',
)
return {
row['user_profile_id']
for row in query
}
return {row['user_profile_id'] for row in query}
def get_active_subscriptions(self) -> QuerySet:
return get_active_subscriptions_for_stream_id(self.stream_id)