Source code for wow.models.title

 1"""Models for the Title API."""
 2
 3from wow.models._common import Document, GenderedName, Model, Ref, TypedName
 4
 5__all__ = ["Title", "TitleIndex", "TitleSource"]
 6
 7
[docs] 8class TitleIndex(Document): 9 """Every title.""" 10 11 titles: tuple[Ref, ...]
12 13
[docs] 14class TitleSource(Model): 15 """How a title is earned, such as by the quests that award it.""" 16 17 type: TypedName 18 quests: tuple[Ref, ...] = ()
19 20
[docs] 21class Title(Document): 22 """A title, such as Commander, with its male and female forms around ``{name}``.""" 23 24 id: int 25 name: str 26 gender_name: GenderedName 27 source: TitleSource | None = None