mypy: Enable strict optional in lib/events.

Modify one variable assignment to pass under strict conditions.
This commit is contained in:
jkiely
2018-05-17 09:09:31 -04:00
committed by Tim Abbott
parent ad065fde29
commit a1b5e7d6d5
2 changed files with 3 additions and 3 deletions

View File

@@ -181,8 +181,8 @@ def fetch_initial_state_data(user_profile: UserProfile,
else:
state['realm_notifications_stream_id'] = -1
if realm.get_signup_notifications_stream():
signup_notifications_stream = realm.get_signup_notifications_stream()
signup_notifications_stream = realm.get_signup_notifications_stream()
if signup_notifications_stream:
state['realm_signup_notifications_stream_id'] = signup_notifications_stream.id
else:
state['realm_signup_notifications_stream_id'] = -1