From e1e68d3620f5159be587e22acc423cabe1573ceb Mon Sep 17 00:00:00 2001 From: KT Date: Mon, 5 Feb 2024 20:59:49 +0800 Subject: [PATCH] Make HSR Pure Fiction floor buff optional --- genshin/models/starrail/chronicle/challenge.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/genshin/models/starrail/chronicle/challenge.py b/genshin/models/starrail/chronicle/challenge.py index b985ecf8..d71f2ee2 100644 --- a/genshin/models/starrail/chronicle/challenge.py +++ b/genshin/models/starrail/chronicle/challenge.py @@ -1,6 +1,6 @@ """Starrail chronicle challenge.""" -from typing import TYPE_CHECKING, Any, Dict, List +from typing import TYPE_CHECKING, Any, Dict, List, Optional if TYPE_CHECKING: import pydantic.v1 as pydantic @@ -71,7 +71,7 @@ class FictionBuff(APIModel): class FictionFloorNode(FloorNode): """Node for a Pure Fiction floor.""" - buff: FictionBuff + buff: Optional[FictionBuff] score: int