scheduled-messages: Simplify message_to type in check_schedule_message.

As of commit 38f6807af1, we accept only stream and user IDs for
the recipient information for scheduled messages, which means we
can simplify the type for `message_to` in `check_schedule_message`.
This commit is contained in:
Lauryn Menard 2023-05-18 13:56:10 +02:00 committed by Tim Abbott
parent 1ad0ad8ece
commit a2a50e1408
1 changed files with 2 additions and 2 deletions

View File

@ -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],