mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +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
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user