Skip to content

Commit 25642fd

Browse files
authored
fix annotation for select_jinja_autoescape (#5808)
2 parents 64dd080 + dbd4c28 commit 25642fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/flask/sansio/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ def create_global_jinja_loader(self) -> DispatchingJinjaLoader:
533533
"""
534534
return DispatchingJinjaLoader(self)
535535

536-
def select_jinja_autoescape(self, filename: str) -> bool:
536+
def select_jinja_autoescape(self, filename: str | None) -> bool:
537537
"""Returns ``True`` if autoescaping should be active for the given
538538
template name. If no template name is given, returns `True`.
539539

0 commit comments

Comments
 (0)