Revert "fix value type"

This reverts commit 92b9e7d172.
This commit is contained in:
user.email 2023-07-12 08:47:06 +09:00
parent 92b9e7d172
commit 9c82f65545
4 changed files with 8 additions and 8 deletions

View File

@ -32,7 +32,7 @@ class NamecardAsset(BaseModel):
"""
id: int = 0
hash_id: str | int = Field("", alias="nameTextMapHash")
hash_id: str = Field("", alias="nameTextMapHash")
icon: IconAsset
banner: IconAsset
navbar: IconAsset
@ -74,7 +74,7 @@ class CharacterSkillAsset(BaseModel):
"""
id: int = 0,
pround_map: int = 0,
hash_id: str | int = Field("", alias="nameTextMapHash")
hash_id: str = Field("", alias="nameTextMapHash")
icon: IconAsset = None
@ -91,7 +91,7 @@ class CharacterConstellationsAsset(BaseModel):
A icon assets. Please refers in `IconAsset` class
"""
id: int = 0
hash_id: str | int = Field("", alias="nameTextMapHash")
hash_id: str = Field("", alias="nameTextMapHash")
icon: IconAsset = None
@ -114,7 +114,7 @@ class AritfactProps(BaseModel):
id: int = 0
type: str = Field('', alias='propType')
digit: str = Field('DIGIT', alias='propDigit')
value: int | float = Field(0, alias='propValue')
value: int = Field(0, alias='propValue')
class CharacterAsset(BaseModel):
@ -141,7 +141,7 @@ class CharacterAsset(BaseModel):
"""
id: int = 0
rarity: int = 0
hash_id: str | int = Field("", alias="nameTextMapHash")
hash_id: str = Field("", alias="nameTextMapHash")
element: ElementType = ElementType.Unknown
images: CharacterIconAsset = None
skill_id: int = 0

View File

@ -93,7 +93,7 @@ class EquipmentsProps(BaseModel):
prop_id: str = ''
name: str = ''
digit: DigitType = DigitType.NUMBER
value: int | float = 0
value: int = 0
def __init__(self, **data: Any) -> None:
super().__init__(**data)

View File

@ -50,7 +50,7 @@ class showAvatar(BaseModel):
"""
API Response data
"""
id: int = Field(0, alias="avatarId")
id: str = Field(0, alias="avatarId")
level: int = 1
"""

View File

@ -1,3 +1,3 @@
pydantic >= 2.0.0
pydantic
aiohttp
cachetools