dev_settings: Use Python 2-compatible annotation.

This file is imported from zthumbor.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-06-10 02:11:55 -07:00
parent 3de3386c21
commit 5837560a82

View File

@@ -41,7 +41,7 @@ ALLOWED_HOSTS = ['*']
# Uncomment extra backends if you want to test with them. Note that # Uncomment extra backends if you want to test with them. Note that
# for Google and GitHub auth you'll need to do some pre-setup. # for Google and GitHub auth you'll need to do some pre-setup.
AUTHENTICATION_BACKENDS: Tuple[str, ...] = ( AUTHENTICATION_BACKENDS = (
'zproject.backends.DevAuthBackend', 'zproject.backends.DevAuthBackend',
'zproject.backends.EmailAuthBackend', 'zproject.backends.EmailAuthBackend',
'zproject.backends.GitHubAuthBackend', 'zproject.backends.GitHubAuthBackend',
@@ -50,7 +50,7 @@ AUTHENTICATION_BACKENDS: Tuple[str, ...] = (
# 'zproject.backends.AzureADAuthBackend', # 'zproject.backends.AzureADAuthBackend',
'zproject.backends.GitLabAuthBackend', 'zproject.backends.GitLabAuthBackend',
'zproject.backends.AppleAuthBackend', 'zproject.backends.AppleAuthBackend',
) ) # type: Tuple[str, ...]
EXTERNAL_URI_SCHEME = "http://" EXTERNAL_URI_SCHEME = "http://"
EMAIL_GATEWAY_PATTERN = "%s@" + EXTERNAL_HOST.split(':')[0] EMAIL_GATEWAY_PATTERN = "%s@" + EXTERNAL_HOST.split(':')[0]