mirror of https://github.com/zulip/zulip.git
mypy: Fix type of messages in do_update_message_flags.
Ever since we moved the stream/everything cases to separate functions, the messages argument has actually been required.
This commit is contained in:
parent
23246ff816
commit
e7c7211c30
|
@ -3619,7 +3619,7 @@ def do_update_message_flags(user_profile: UserProfile,
|
||||||
client: Client,
|
client: Client,
|
||||||
operation: str,
|
operation: str,
|
||||||
flag: str,
|
flag: str,
|
||||||
messages: Optional[Sequence[int]]) -> int:
|
messages: List[int]) -> int:
|
||||||
flagattr = getattr(UserMessage.flags, flag)
|
flagattr = getattr(UserMessage.flags, flag)
|
||||||
|
|
||||||
assert messages is not None
|
assert messages is not None
|
||||||
|
|
Loading…
Reference in New Issue