mirror of https://github.com/zulip/zulip.git
add_new_realm: Fix strict_optional errors.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
3885fdadce
commit
6c9c12ee2d
5
mypy.ini
5
mypy.ini
|
@ -38,11 +38,6 @@ warn_unreachable = True
|
|||
|
||||
strict_optional = True
|
||||
|
||||
# One change required?
|
||||
|
||||
[mypy-zilencer.management.commands.add_new_realm] #22: error: List item 0 has incompatible type "Optional[Stream]"; expected "Stream"
|
||||
strict_optional = False
|
||||
|
||||
# Re-architecting required?
|
||||
|
||||
[mypy-zerver.lib.queue] # Delayed setup of SimpleQueueClient.channel (Optional)
|
||||
|
|
|
@ -18,6 +18,7 @@ class Command(ZulipBaseCommand):
|
|||
UserProfile.objects.filter(email__contains='user@').count())
|
||||
user = do_create_user(f'{name}@{string_id}.zulip.com',
|
||||
'password', realm, name, name, role=UserProfile.ROLE_REALM_ADMINISTRATOR)
|
||||
assert realm.signup_notifications_stream is not None
|
||||
bulk_add_subscriptions([realm.signup_notifications_stream], [user])
|
||||
|
||||
send_initial_realm_messages(realm)
|
||||
|
|
Loading…
Reference in New Issue