mypy: Initialize search_term to {} rather than None & avoid Optional.

This commit is contained in:
neiljp (Neil Pilgrim)
2017-08-02 21:55:58 -07:00
committed by Tim Abbott
parent f96f71e439
commit b19e62b7ce

View File

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