mirror of https://github.com/zulip/zulip.git
mypy: Specify type of 'user_profile = None' as Optional[UserProfile].
This commit is contained in:
parent
0958298d88
commit
a84d7b8581
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue