From b8f81801c1ab37065749eb552ad7eeece71e9cca Mon Sep 17 00:00:00 2001 From: "neiljp (Neil Pilgrim)" Date: Sun, 24 Dec 2017 20:12:52 +0000 Subject: [PATCH] mypy: Annotate existing_user_profile in accounts_register(). --- zerver/views/registration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/views/registration.py b/zerver/views/registration.py index 23ad647ba0..616afbf22d 100644 --- a/zerver/views/registration.py +++ b/zerver/views/registration.py @@ -190,7 +190,7 @@ def accounts_register(request: HttpRequest) -> HttpResponse: if not realm_creation: try: - existing_user_profile = get_user(email, realm) + existing_user_profile = get_user(email, realm) # type: Optional[UserProfile] except UserProfile.DoesNotExist: existing_user_profile = None else: