mirror of
https://github.com/zulip/zulip.git
synced 2025-10-28 10:33:54 +00:00
ruff: Fix UP007 Use X | Y for type annotations.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
e08a24e47f
commit
531b34cb4c
@@ -1,4 +1,4 @@
|
||||
from typing import Optional, Sequence
|
||||
from typing import Sequence
|
||||
|
||||
from django.core.exceptions import ValidationError
|
||||
from django.utils.translation import gettext as _
|
||||
@@ -14,7 +14,7 @@ from zerver.models.users import is_cross_realm_bot_email
|
||||
def get_recipient_from_user_profiles(
|
||||
recipient_profiles: Sequence[UserProfile],
|
||||
forwarded_mirror_message: bool,
|
||||
forwarder_user_profile: Optional[UserProfile],
|
||||
forwarder_user_profile: UserProfile | None,
|
||||
sender: UserProfile,
|
||||
create: bool = True,
|
||||
) -> Recipient:
|
||||
@@ -102,7 +102,7 @@ def validate_recipient_user_profiles(
|
||||
def recipient_for_user_profiles(
|
||||
user_profiles: Sequence[UserProfile],
|
||||
forwarded_mirror_message: bool,
|
||||
forwarder_user_profile: Optional[UserProfile],
|
||||
forwarder_user_profile: UserProfile | None,
|
||||
sender: UserProfile,
|
||||
*,
|
||||
allow_deactivated: bool = False,
|
||||
|
||||
Reference in New Issue
Block a user