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

@@ -2,7 +2,7 @@ import re
import time
from datetime import timedelta
from io import StringIO
from typing import TYPE_CHECKING, Any, Union
from typing import TYPE_CHECKING, Any
from unittest import mock
import orjson
@@ -33,7 +33,7 @@ class ScheduledMessageTest(ZulipTestCase):
def do_schedule_message(
self,
msg_type: str,
to: Union[int, list[str], list[int]],
to: int | list[str] | list[int],
msg: str,
scheduled_delivery_timestamp: int,
) -> "TestHttpResponse":