Skip to content

The agent that grows with you

fix(website-policy): make the salvaged test collect and pass blocking ruff

Teknium67491b50f7e5
diff --git a/tests/tools/test_website_policy_cache_scope.py b/tests/tools/test_website_policy_cache_scope.py
index e9b7769126a..a78d24ff9f2 100644
--- a/tests/tools/test_website_policy_cache_scope.py
+++ b/tests/tools/test_website_policy_cache_scope.py
@@ -6,9 +6,9 @@ from contextlib import contextmanager
from pathlib import Path
import pytest
-import yaml
-import tools.website_policy as website_policy
+import hermes_yaml as yaml
+from tools import website_policy
from hermes_constants import reset_hermes_home_override, set_hermes_home_override
diff --git a/tools/website_policy.py b/tools/website_policy.py
index f0c3acd657b..d2c24b20668 100644
--- a/tools/website_policy.py
+++ b/tools/website_policy.py
@@ -30,7 +30,7 @@ _cached_policy_path: Optional[str] = None
_cached_policy_time: float = 0.0
-def _fresh_cached_policy(resolved_path: str, now: float) -> Optional[Dict[str, Any]]:
+def _fresh_cached_policy(resolved_path: str, now: float) -> Optional[dict[str, Any]]:
"""Return the cached policy only when it belongs to this config path and is still within TTL."""
with _cache_lock:
if (