mirror of https://github.com/zulip/zulip.git
mypy: Add 2 Optional[StreamTopicTarget] annotations in actions.py.
This commit is contained in:
parent
79582a59f1
commit
ec829ea832
|
@ -1089,7 +1089,7 @@ def do_send_messages(messages_maybe_none: Sequence[Optional[MutableMapping[str,
|
||||||
stream_topic = StreamTopicTarget(
|
stream_topic = StreamTopicTarget(
|
||||||
stream_id=stream_id,
|
stream_id=stream_id,
|
||||||
topic_name=message['message'].topic_name()
|
topic_name=message['message'].topic_name()
|
||||||
)
|
) # type: Optional[StreamTopicTarget]
|
||||||
else:
|
else:
|
||||||
stream_topic = None
|
stream_topic = None
|
||||||
|
|
||||||
|
@ -3566,7 +3566,7 @@ def do_update_message(user_profile: UserProfile, message: Message, topic_name: O
|
||||||
stream_topic = StreamTopicTarget(
|
stream_topic = StreamTopicTarget(
|
||||||
stream_id=stream_id,
|
stream_id=stream_id,
|
||||||
topic_name=new_topic_name,
|
topic_name=new_topic_name,
|
||||||
)
|
) # type: Optional[StreamTopicTarget]
|
||||||
else:
|
else:
|
||||||
stream_topic = None
|
stream_topic = None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue