mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	mypy: Initialize search_term to {} rather than None & avoid Optional.
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							f96f71e439
						
					
				
				
					commit
					b19e62b7ce
				
			@@ -632,7 +632,7 @@ def get_messages_backend(request, user_profile,
 | 
			
		||||
        # Build the query for the narrow
 | 
			
		||||
        num_extra_messages = 0
 | 
			
		||||
        builder = NarrowBuilder(user_profile, inner_msg_id_col)
 | 
			
		||||
        search_term = None  # type: Optional[Dict[str, Any]]
 | 
			
		||||
        search_term = {}  # type: Dict[str, Any]
 | 
			
		||||
        for term in narrow:
 | 
			
		||||
            if term['operator'] == 'search':
 | 
			
		||||
                if not is_search:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user