From f267db9148e3a390a1a2e50fe71ac4675dceaea1 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Wed, 18 Nov 2026 21:28:28 +0100 Subject: refactor(core): tighten static typing Add explicit runtime narrowing in tests and simplify Huey decorator annotations so static analysis reflects the dynamic task wrapper behavior. Clean up URL argument construction and form error updates while preserving existing application behavior. --- tests/forms/test_received.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/forms/test_received.py') diff --git a/tests/forms/test_received.py b/tests/forms/test_received.py index 4ef9ed3..913ab6d 100644 --- a/tests/forms/test_received.py +++ b/tests/forms/test_received.py @@ -25,6 +25,8 @@ def test_received_filter_form_accepts_valid_get_params(app: Flask) -> None: assert form.validate() assert form.status.data == "declined" assert form.q.data == "example.org" + assert form.date_from.data is not None + assert form.date_to.data is not None assert form.date_from.data.isoformat() == "2026-11-08" assert form.date_to.data.isoformat() == "2026-11-14" assert "csrf_token" not in form._fields -- cgit v1.3.1