Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

scheduled-messages: Simplify message_to type in check_schedule_message.

Lauryn Menarda2a50e14089b
diff --git a/zerver/actions/scheduled_messages.py b/zerver/actions/scheduled_messages.py
index bf260f98065..b9a5bc06e57 100644
--- a/zerver/actions/scheduled_messages.py
+++ b/zerver/actions/scheduled_messages.py
@@ -1,6 +1,6 @@
import datetime
import logging
-from typing import List, Optional, Sequence, Tuple, Union
+from typing import List, Optional, Sequence, Tuple
import orjson
from django.conf import settings
@@ -61,7 +61,7 @@ def check_schedule_message(
sender: UserProfile,
client: Client,
recipient_type_name: str,
- message_to: Union[Sequence[str], Sequence[int]],
+ message_to: List[int],
topic_name: Optional[str],
message_content: str,
scheduled_message_id: Optional[int],