From 0a517e6fbbf3fc7d32e5210a1d537296748a7fe5 Mon Sep 17 00:00:00 2001 From: seria Date: Wed, 25 Dec 2024 18:34:14 +0800 Subject: [PATCH] feat: Add bangboo field to DeadlyAssaultChallenge --- genshin/models/zzz/chronicle/challenge.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/genshin/models/zzz/chronicle/challenge.py b/genshin/models/zzz/chronicle/challenge.py index 6fb9946b..5795f815 100644 --- a/genshin/models/zzz/chronicle/challenge.py +++ b/genshin/models/zzz/chronicle/challenge.py @@ -76,7 +76,7 @@ class ShiyuDefenseNode(APIModel): """Shiyu Defense node model.""" characters: list[ShiyuDefenseCharacter] = Aliased("avatars") - bangboo: typing.Optional[ShiyuDefenseBangboo] = Aliased("buddy") + bangboo: typing.Optional[ShiyuDefenseBangboo] = Aliased("buddy", default=None) recommended_elements: list[ZZZElementType] = Aliased("element_type_list") enemies: list[ShiyuDefenseMonster] = Aliased("monster_info") @@ -179,6 +179,7 @@ class DeadlyAssaultChallenge(APIModel): boss: DeadlyAssaultBoss buffs: typing.Sequence[DeadlyAssaultBuff] = Aliased("buffer") agents: typing.Sequence[DeadlyAssaultAgent] = Aliased("avatar_list") + bangboo: typing.Optional[ShiyuDefenseBangboo] = Aliased("buddy", default=None) @pydantic.field_validator("challenge_time", mode="before") def __parse_datetime(cls, value: typing.Mapping[str, typing.Any]) -> typing.Optional[TZDateTime]: