mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
black: Reformat with Black 23.
Black 23 enforces some slightly more specific rules about empty line
counts and redundant parenthesis removal, but the result is still
compatible with Black 22.
(This does not actually upgrade our Python environment to Black 23
yet.)
Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit df001db1a9)
This commit is contained in:
committed by
Tim Abbott
parent
25609fb675
commit
7a34e9a3fd
@@ -2390,7 +2390,6 @@ class AbstractPushDeviceToken(models.Model):
|
||||
|
||||
|
||||
class PushDeviceToken(AbstractPushDeviceToken):
|
||||
|
||||
# The user whose device this is
|
||||
user = models.ForeignKey(UserProfile, db_index=True, on_delete=CASCADE)
|
||||
|
||||
@@ -2767,7 +2766,6 @@ def bulk_get_streams(realm: Realm, stream_names: STREAM_NAMES) -> Dict[str, Any]
|
||||
|
||||
|
||||
def get_huddle_recipient(user_profile_ids: Set[int]) -> Recipient:
|
||||
|
||||
# The caller should ensure that user_profile_ids includes
|
||||
# the sender. Note that get_huddle hits the cache, and then
|
||||
# we hit another cache to get the recipient. We may want to
|
||||
@@ -4602,6 +4600,7 @@ class CustomProfileFieldValue(models.Model):
|
||||
GENERIC_INTERFACE = "GenericService"
|
||||
SLACK_INTERFACE = "SlackOutgoingWebhookService"
|
||||
|
||||
|
||||
# A Service corresponds to either an outgoing webhook bot or an embedded bot.
|
||||
# The type of Service is determined by the bot_type field of the referenced
|
||||
# UserProfile.
|
||||
|
||||
Reference in New Issue
Block a user