From 74029a5d6fd5b25038aa882c32f9cb4152efda3a Mon Sep 17 00:00:00 2001 From: M-307 Date: Sun, 17 Jul 2022 02:35:23 +0700 Subject: [PATCH] Change return empty array to None --- enkanetwork/model/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/enkanetwork/model/__init__.py b/enkanetwork/model/__init__.py index 9fab5b2..98b15ae 100644 --- a/enkanetwork/model/__init__.py +++ b/enkanetwork/model/__init__.py @@ -5,6 +5,6 @@ from .players import PlayerInfo from .character import CharacterInfo class EnkaNetworkResponse(BaseModel): - player: PlayerInfo = Field({}, alias="playerInfo") - characters: List[CharacterInfo] = Field([], alias="avatarInfoList") + player: PlayerInfo = Field(None, alias="playerInfo") + characters: List[CharacterInfo] = Field(None, alias="avatarInfoList") ttl: int = 0 \ No newline at end of file