You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit aea4ebe
Browse filesBrowse the repository at this point in the historyBrowse files
Parse task config JSON in _row_to_task so the dict annotation is true
CronTask.config was annotated `dict` but held the raw JSON string straight
from SQLite, so every consumer had to defend itself: _execute_task and
_task_to_response each carried an `isinstance(..., str)` branch, and tests
asserted through json.loads(task.config). The annotation being a lie also
meant ty could not check any subscripting of task.config.
_row_to_task already coerces `enabled` to bool precisely so the dataclass
reflects reality; config now gets the same treatment. The parse is safe
unguarded: the column is TEXT NOT NULL DEFAULT '{}' and both write paths
(upsert_task, update_task) json.dumps the value, so no row holds NULL.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
0 commit comments