Skip to content

Commit

Permalink
Fix ValidationError in ImgTheaterData.battle_stats
Browse files Browse the repository at this point in the history
  • Loading branch information
seriaati committed Nov 27, 2024
1 parent cf5d289 commit 8a73495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genshin/models/genshin/chronicle/img_theater.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class ImgTheaterData(APIModel):
schedule: TheaterSchedule
has_data: bool
has_detail_data: bool
battle_stats: TheaterBattleStats = Aliased("fight_statisic", default=None)
battle_stats: typing.Optional[TheaterBattleStats] = Aliased("fight_statisic", default=None)

@pydantic.model_validator(mode="before")
def __unnest_detail(cls, values: dict[str, typing.Any]) -> dict[str, typing.Any]:
Expand Down

0 comments on commit 8a73495

Please sign in to comment.