From 58d083b7203ca396de1725abe61946e4243c9752 Mon Sep 17 00:00:00 2001 From: subhajitsaha01 Date: Sat, 6 Sep 2025 20:56:20 +0530 Subject: [PATCH] Changed the static annotated type of select_jinja_autoescape method in src/flask/sansio/app.py --- src/flask/sansio/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flask/sansio/app.py b/src/flask/sansio/app.py index 94bd43a5dc..bc280deb1a 100644 --- a/src/flask/sansio/app.py +++ b/src/flask/sansio/app.py @@ -533,7 +533,7 @@ def create_global_jinja_loader(self) -> DispatchingJinjaLoader: """ 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 template name. If no template name is given, returns `True`.