Skip to content

Commit

Permalink
Fix ValidationError in TheaterBattleStats
Browse files Browse the repository at this point in the history
  • Loading branch information
seriaati committed Sep 10, 2024
1 parent 2add667 commit a7c6080
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions genshin/models/genshin/chronicle/img_theater.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ def __intify_value(cls, value: str) -> int:
class TheaterBattleStats(APIModel):
"""Imaginarium theater battle statistics."""

max_defeat_character: BattleStatCharacter = Aliased("max_defeat_avatar")
max_damage_character: BattleStatCharacter = Aliased("max_damage_avatar")
max_take_damage_character: BattleStatCharacter = Aliased("max_take_damage_avatar")
max_defeat_character: typing.Optional[BattleStatCharacter] = Aliased("max_defeat_avatar", default=None)
max_damage_character: typing.Optional[BattleStatCharacter] = Aliased("max_damage_avatar", default=None)
max_take_damage_character: typing.Optional[BattleStatCharacter] = Aliased("max_take_damage_avatar", default=None)
fastest_character_list: typing.Sequence[BattleStatCharacter] = Aliased("shortest_avatar_list")
total_cast_seconds: int = Aliased("total_use_time")

Expand Down

0 comments on commit a7c6080

Please sign in to comment.