Skip to content

Commit

Permalink
silence mypy on this one, python/mypy#16936 related ?
Browse files Browse the repository at this point in the history
  • Loading branch information
euri10 committed Mar 4, 2024
1 parent d96c6d0 commit 923d397
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/test_plugins/test_flash.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def test_flash_plugin(
) -> None:
Path(tmp_path / "flash.html").write_text(template_str)
text_expected = "".join(
[f'<span class="{category.value}">message {category.value}</span>' for category in category_enum]
[f'<span class="{category.value}">message {category.value}</span>' for category in category_enum] # type: ignore[attr-defined]
)

@get("/flash")
Expand All @@ -58,7 +58,7 @@ def flash_handler(request: Request) -> Template:
flash(request, f"message {category.value}", category=category.value)
return Template("flash.html")

template_config = TemplateConfig(
template_config: TemplateConfig = TemplateConfig(
directory=Path(tmp_path),
engine=engine,
)
Expand Down

0 comments on commit 923d397

Please sign in to comment.