mypy: Annotate existing_user_profile in accounts_register().

This commit is contained in:
neiljp (Neil Pilgrim) 2017-12-24 20:12:52 +00:00 committed by Greg Price
parent 3cb12230b2
commit b8f81801c1
1 changed files with 1 additions and 1 deletions

View File

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