Skip to content

Conversation

@subhajitsaha01
Copy link

Inside the code of the method the filename is checked against a None value and returns True, but the static annotated type is a str. I have changed the static annotation type to str to str | None.

@subhajitsaha01

This comment was marked as outdated.

@subhajitsaha01

This comment was marked as outdated.

@davidism davidism changed the title Changed the static annotated type filename parameter of select_jinja_autoescape method in src/flask/sansio/app.py fix annotation for elect_jinja_autoescape Dec 24, 2025
@davidism davidism changed the title fix annotation for elect_jinja_autoescape fix annotation for select_jinja_autoescape Dec 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant