ruff: Fix UP007 Use X | Y for type annotations.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-07-11 17:30:23 -07:00
committed by Tim Abbott
parent e08a24e47f
commit 531b34cb4c
355 changed files with 2759 additions and 3029 deletions

View File

@@ -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: