Source code for wow.models.spell

 1"""Models for the Spell API."""
 2
 3from wow.models._common import Document, IdRef, LocalizedString, Model
 4
 5__all__ = ["Spell", "SpellSearchData"]
 6
 7
[docs] 8class Spell(Document): 9 """A spell, such as a talent or an ability.""" 10 11 id: int 12 name: str 13 media: IdRef | None = None 14 description: str | None = None
15 16 17class _SpellSearchIdOnly(Model): 18 """A media reference stripped down to its id, as search results carry it.""" 19 20 id: int 21 22
[docs] 23class SpellSearchData(Model): 24 """One spell as indexed for search: every locale's name at once, no ``_links``.""" 25 26 id: int 27 name: LocalizedString 28 media: _SpellSearchIdOnly | None = None