fix: isolate token_hex mock to wizard module and fix mypy annotation

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-23 10:01:07 +00:00
parent 4e1cd73338
commit 0188575c27
4 changed files with 6 additions and 5 deletions
+2 -1
View File
@@ -22,6 +22,7 @@ nothing has changed.
import logging
import time
from typing import Any
import redis
from celery.signals import task_prerun
@@ -67,7 +68,7 @@ def register_settings_reload_signal() -> None:
"""
@task_prerun.connect(weak=False)
def _reload_if_stale(sender, **kwargs) -> None: # type: ignore[misc]
def _reload_if_stale(sender: Any, **kwargs: Any) -> None:
"""Reload settings from DB if the Redis version key has changed."""
global _last_seen_version
try: