mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +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 Iterable, Optional
|
||||
from typing import Iterable
|
||||
|
||||
from django.conf import settings
|
||||
from django.db import transaction
|
||||
@@ -79,9 +79,9 @@ def create_internal_realm() -> None:
|
||||
def create_users(
|
||||
realm: Realm,
|
||||
name_list: Iterable[tuple[str, str]],
|
||||
tos_version: Optional[str] = None,
|
||||
bot_type: Optional[int] = None,
|
||||
bot_owner: Optional[UserProfile] = None,
|
||||
tos_version: str | None = None,
|
||||
bot_type: int | None = None,
|
||||
bot_owner: UserProfile | None = None,
|
||||
) -> None:
|
||||
user_set = set()
|
||||
for full_name, email in name_list:
|
||||
|
||||
Reference in New Issue
Block a user