diff --git a/tests/unit/test_plugins/test_flash.py b/tests/unit/test_plugins/test_flash.py
index c59bdebed4..9e33014de9 100644
--- a/tests/unit/test_plugins/test_flash.py
+++ b/tests/unit/test_plugins/test_flash.py
@@ -49,7 +49,7 @@ def test_flash_plugin(
) -> None:
Path(tmp_path / "flash.html").write_text(template_str)
text_expected = "".join(
- [f'message {category.value}' for category in category_enum]
+ [f'message {category.value}' for category in category_enum] # type: ignore[attr-defined]
)
@get("/flash")
@@ -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,
)