From b930b4425b91aa42abcec6c3443685065a5ca242 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Thu, 12 Nov 2026 20:54:29 +0100 Subject: chore(core): fix task typing issues Add explicit result assertions, broader parser annotations, and SQLAlchemy result casts so static type checking reflects the runtime guarantees of task code. --- tests/tasks/test_scanner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/tasks/test_scanner.py') diff --git a/tests/tasks/test_scanner.py b/tests/tasks/test_scanner.py index 7eb970c..57782f1 100644 --- a/tests/tasks/test_scanner.py +++ b/tests/tasks/test_scanner.py @@ -1139,7 +1139,7 @@ def test_unexpected_parser_error_does_not_abort_other_sources( else: original_parse = source_parser.mf2py.parse - def failing_parse(*, doc: str, url: str) -> dict[str, Any]: + def failing_parse(*, doc: str, url: str) -> dict[str, Any] | list[Any]: if "/bad/" in doc: raise failure return original_parse(doc=doc, url=url) -- cgit v1.3.1