mypy: Specify type of 'user_profile = None' as Optional[UserProfile].

This commit is contained in:
neiljp (Neil Pilgrim) 2017-07-05 23:27:57 -07:00 committed by Tim Abbott
parent 0958298d88
commit a84d7b8581
1 changed files with 3 additions and 3 deletions

View File

@ -1867,7 +1867,7 @@ class LoginOrAskForRegistrationTestCase(ZulipTestCase):
# type: () -> None
request = POSTRequestMock({}, None)
email = 'new@zulip.com'
user_profile = None
user_profile = None # type: Optional[UserProfile]
full_name = 'New User'
invalid_subdomain = False
result = login_or_register_remote_user(
@ -1885,7 +1885,7 @@ class LoginOrAskForRegistrationTestCase(ZulipTestCase):
# type: () -> None
request = POSTRequestMock({}, None)
email = 'new@zulip.com'
user_profile = None
user_profile = None # type: Optional[UserProfile]
full_name = 'New User'
invalid_subdomain = True
response = login_or_register_remote_user(
@ -1901,7 +1901,7 @@ class LoginOrAskForRegistrationTestCase(ZulipTestCase):
# type: () -> None
request = POSTRequestMock({}, None)
email = None
user_profile = None
user_profile = None # type: Optional[UserProfile]
full_name = 'New User'
invalid_subdomain = False
response = login_or_register_remote_user(