mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	mypy: Add 2 Optional[StreamTopicTarget] annotations in actions.py.
This commit is contained in:
		
				
					committed by
					
						
						Greg Price
					
				
			
			
				
	
			
			
			
						parent
						
							79582a59f1
						
					
				
				
					commit
					ec829ea832
				
			@@ -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
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user