Harden formatter metadata fixtures
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user