mirror of https://github.com/zulip/zulip.git
mypy: Initialize search_term to {} rather than None & avoid Optional.
This commit is contained in:
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:
|
||||
|
|
Loading…
Reference in New Issue