mypy: Add 2 Optional[StreamTopicTarget] annotations in actions.py.

This commit is contained in:
neiljp (Neil Pilgrim) 2017-12-24 21:01:01 +00:00 committed by Greg Price
parent 79582a59f1
commit ec829ea832
1 changed files with 2 additions and 2 deletions

View File

@ -1089,7 +1089,7 @@ def do_send_messages(messages_maybe_none: Sequence[Optional[MutableMapping[str,
stream_topic = StreamTopicTarget(
stream_id=stream_id,
topic_name=message['message'].topic_name()
)
) # type: Optional[StreamTopicTarget]
else:
stream_topic = None
@ -3566,7 +3566,7 @@ def do_update_message(user_profile: UserProfile, message: Message, topic_name: O
stream_topic = StreamTopicTarget(
stream_id=stream_id,
topic_name=new_topic_name,
)
) # type: Optional[StreamTopicTarget]
else:
stream_topic = None