mirror of https://github.com/zulip/zulip.git
2e248cdbec
django-stubs dynamically collects the type annotation for us from the settings, acknowledging mypy that `HOME_NOT_LOGGED_IN` is an `Optional[str]`. Type narrowing with assertions does not play well with the default value of the decorator, so we define the same setting variable with a different name as `CUSTOM_HOME_NOT_LOGGED_IN` to bypass this restriction. Filed python/mypy#13087 to track this issue. Signed-off-by: Zixuan James Li <p359101898@gmail.com> |
||
---|---|---|
.. | ||
jinja2 | ||
__init__.py | ||
backends.py | ||
computed_settings.py | ||
config.py | ||
configured_settings.py | ||
default_settings.py | ||
dev_settings.py | ||
dev_urls.py | ||
email_backends.py | ||
legacy_urls.py | ||
prod_settings.pyi | ||
prod_settings_template.py | ||
sentry.py | ||
settings.py | ||
test_extra_settings.py | ||
test_settings.py | ||
urls.py | ||
wsgi.py |