File: apps/api/src/kiki_cockpit/services/hf_cache.py:67-68
if hasattr(card, "deprecated_note"):
card.deprecated_note = dep.note # type: ignore[attr-defined]
card is typed as ModelCard but deprecated_note is only on ModelDetail. The HFCache only stores ModelCard objects, so deprecated_note will never be set. The type: ignore masks a real logic gap.
Fix: either add deprecated_note: str | None = None to ModelCard (so listings show the note), or drop the hasattr branch entirely (note only available via detail API).
File:
apps/api/src/kiki_cockpit/services/hf_cache.py:67-68cardis typed asModelCardbutdeprecated_noteis only onModelDetail. TheHFCacheonly storesModelCardobjects, sodeprecated_notewill never be set. Thetype: ignoremasks a real logic gap.Fix: either add
deprecated_note: str | None = NonetoModelCard(so listings show the note), or drop thehasattrbranch entirely (note only available via detail API).