fix annotation for select_jinja_autoescape (#5808)

This commit is contained in:
David Lord 2026-01-24 18:25:31 -08:00 committed by GitHub
commit 25642fd1fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -533,7 +533,7 @@ class App(Scaffold):
""" """
return DispatchingJinjaLoader(self) return DispatchingJinjaLoader(self)
def select_jinja_autoescape(self, filename: str) -> bool: def select_jinja_autoescape(self, filename: str | None) -> bool:
"""Returns ``True`` if autoescaping should be active for the given """Returns ``True`` if autoescaping should be active for the given
template name. If no template name is given, returns `True`. template name. If no template name is given, returns `True`.