Skip to content

Commit

Permalink
Improve type annotation fastapi template context (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
bo5o authored Apr 28, 2024
1 parent e3ccf9f commit 2bb82ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jinja2_fragments/fastapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def __init__(self, directory, **env_options):
def TemplateResponse(
self,
name: str,
context: dict,
context: dict[str, typing.Any],
status_code: int = 200,
headers: typing.Optional[typing.Mapping[str, str]] = None,
media_type: typing.Optional[str] = None,
Expand Down

0 comments on commit 2bb82ca

Please sign in to comment.