[docs]@dataclassclassAnimeStaff(JikanResource):"""Get data of the staff from a particular anime."""_get_endpoint="/anime/{id}/staff"data:JikanResponseData[List[AnimeStaffData]]def__iter__(self):forstaffinself.data["data"]:yieldAnimeIndividualStaff(staff)
@dataclassclassAnimeIndividualStaff():data:AnimeStaffDataid:int=field(init=False)"""The MyAnimeList ID of this staff."""name:str=field(init=False)"""The name of this staff."""url:str=field(init=False)"""The MyAnimeList URL to this staff."""image:Image=field(init=False)"""The image of this staff."""positions:List[str]=field(init=False)"""The list of positions this staff possess."""def__post_init__(self):person=self.data["person"]self.id=person["mal_id"]self.name=person["name"]self.url=person["url"]self.image=Image(person["images"])self.positions=self.data["positions"]