Source code for wow.models.pet

 1"""Models for the Pet API."""
 2
 3from wow.models._common import Document, IdRef, Model, Ref, TypedName
 4
 5__all__ = ["BattlePetType", "Pet", "PetIndex"]
 6
 7
[docs] 8class BattlePetType(Model): 9 """A battle pet's family, such as Critter or Dragonkin.""" 10 11 id: int 12 name: str 13 type: str
14 15
[docs] 16class PetIndex(Document): 17 """Every battle pet species.""" 18 19 pets: tuple[Ref, ...]
20 21
[docs] 22class Pet(Document): 23 """A battle pet species and the creature it is tamed from.""" 24 25 id: int 26 name: str 27 icon: str 28 battle_pet_type: BattlePetType 29 creature: Ref 30 media: IdRef 31 is_alliance_only: bool 32 is_battlepet: bool 33 is_capturable: bool 34 is_horde_only: bool 35 is_random_creature_display: bool 36 is_tradable: bool 37 description: str | None = None 38 source: TypedName | None = None 39 should_exclude_if_uncollected: bool = False