Skip to content

Commit

Permalink
Merge pull request #12 from volfpeter/non-dict-return-value-support-f…
Browse files Browse the repository at this point in the history
…or-jinja

Don't use sets in test, even for fun :)
  • Loading branch information
volfpeter authored Feb 16, 2024
2 parents f9ffbe7 + 5e8ec5f commit e782d6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_jinja.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def htmx_or_data_by_id(id: int) -> User:

@app.get("/htmx-only")
@jinja("user-list.html", no_data=True)
async def htmx_only(random_number: DependsRandomNumber) -> set[User]:
return {billy, lucy}
async def htmx_only(random_number: DependsRandomNumber) -> tuple[User, ...]:
return (billy, lucy)

@app.get("/htmx-only-with-template-alias")
@jinja.template(
Expand Down

0 comments on commit e782d6a

Please sign in to comment.