mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 03:11:54 +00:00
mypy: Use Optional with strings where required.
This commit is contained in:
committed by
Tim Abbott
parent
481d14df39
commit
cc1937c8d5
@@ -9,7 +9,7 @@
|
||||
import platform
|
||||
import six.moves.configparser
|
||||
from base64 import b64decode
|
||||
from typing import Set
|
||||
from typing import Optional, Set
|
||||
|
||||
config_file = six.moves.configparser.RawConfigParser() # type: ignore # https://github.com/python/typeshed/pull/206
|
||||
config_file.read("/etc/zulip/zulip.conf")
|
||||
@@ -99,7 +99,7 @@ EMAIL_GATEWAY_EXTRA_PATTERN_HACK = r'@[\w-]*\.zulip\.net'
|
||||
EMAIL_GATEWAY_BOT = "emailgateway@zulip.com"
|
||||
|
||||
|
||||
SSO_APPEND_DOMAIN = None # type: str
|
||||
SSO_APPEND_DOMAIN = None # type: Optional[str]
|
||||
|
||||
AUTHENTICATION_BACKENDS = ('zproject.backends.EmailAuthBackend',
|
||||
'zproject.backends.GoogleMobileOauth2Backend')
|
||||
|
||||
Reference in New Issue
Block a user