Changed the static annotated type of select_jinja_autoescape method in src/flask/sansio/app.py

This commit is contained in:
subhajitsaha01 2025-09-06 22:01:22 +05:30
parent 85793d6c22
commit dbd4c28825

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`.