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:
Tim Abbott 2018-08-01 17:36:38 -07:00
parent 23246ff816
commit e7c7211c30
1 changed files with 1 additions and 1 deletions

View File

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