mypy: Fix strict optional in zerver/views.

This commit is contained in:
umkay
2017-05-25 09:22:28 -07:00
committed by Tim Abbott
parent 55b4a3792d
commit 9ab0a8be6a
2 changed files with 3 additions and 2 deletions

View File

@@ -85,7 +85,7 @@ def redirect_to_subdomain_login_url():
def login_or_register_remote_user(request, remote_username, user_profile, full_name='',
invalid_subdomain=False, mobile_flow_otp=None,
is_signup=False):
# type: (HttpRequest, Optional[Text], Optional[UserProfile], Text, bool, Optional[str], bool) -> HttpResponse
# type: (HttpRequest, Text, Optional[UserProfile], Text, bool, Optional[str], bool) -> HttpResponse
if invalid_subdomain:
# Show login page with an error message
return redirect_to_subdomain_login_url()