mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-03 12:26:17 -04:00
Add types to synapse.util. (#10601)
This commit is contained in:
parent
ceab5a4bfa
commit
524b8ead77
41 changed files with 400 additions and 253 deletions
|
@ -52,7 +52,7 @@ class NewUserConsentResource(DirectServeHtmlResource):
|
|||
yield hs.config.sso.sso_template_dir
|
||||
yield hs.config.sso.default_template_dir
|
||||
|
||||
self._jinja_env = build_jinja_env(template_search_dirs(), hs.config)
|
||||
self._jinja_env = build_jinja_env(list(template_search_dirs()), hs.config)
|
||||
|
||||
async def _async_render_GET(self, request: Request) -> None:
|
||||
try:
|
||||
|
|
|
@ -80,7 +80,7 @@ class AccountDetailsResource(DirectServeHtmlResource):
|
|||
yield hs.config.sso.sso_template_dir
|
||||
yield hs.config.sso.default_template_dir
|
||||
|
||||
self._jinja_env = build_jinja_env(template_search_dirs(), hs.config)
|
||||
self._jinja_env = build_jinja_env(list(template_search_dirs()), hs.config)
|
||||
|
||||
async def _async_render_GET(self, request: Request) -> None:
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue