Harden formatter metadata fixtures

This commit is contained in:
2026-06-27 14:44:05 +02:00
parent 91b8842cb2
commit ac4c50bf34
2 changed files with 130 additions and 1 deletions
+3 -1
View File
@@ -105,8 +105,10 @@ def formatter_hints_for_route(row_or_hints: Any, route: str) -> list[str]:
raw_hints = row_or_hints.get("formatter_hints") or {}
elif "formatter_hint" in row_or_hints:
raw_hints = formatter_hints(row_or_hints)
else:
elif row_or_hints and all(normalize_formatter_route(raw_route) for raw_route in row_or_hints):
raw_hints = row_or_hints
else:
return []
normalized: dict[str, list[str]] = {}
if isinstance(raw_hints, dict):