mirror of
https://github.com/PaiGramTeam/EnkaNetwork.py.git
synced 2024-11-16 03:45:28 +00:00
Fix type dosen't not show
This commit is contained in:
parent
a90c2c8276
commit
284cf32880
@ -6,7 +6,7 @@ import logging
|
||||
import warnings
|
||||
|
||||
from .http import HTTPClient
|
||||
from .model import EnkaNetworkResponse
|
||||
from .model.base import EnkaNetworkResponse
|
||||
from .assets import Assets
|
||||
from .enum import Language
|
||||
from .cache import Cache
|
||||
|
@ -6,8 +6,3 @@ from .character import *
|
||||
from .equipments import *
|
||||
from .players import *
|
||||
from .stats import *
|
||||
|
||||
class EnkaNetworkResponse(BaseModel):
|
||||
player: PlayerInfo = Field(None, alias="playerInfo")
|
||||
characters: List[CharacterInfo] = Field(None, alias="avatarInfoList")
|
||||
ttl: int = 0
|
||||
|
12
enkanetwork/model/base.py
Normal file
12
enkanetwork/model/base.py
Normal file
@ -0,0 +1,12 @@
|
||||
from pydantic import BaseModel, Field
|
||||
from typing import List
|
||||
|
||||
from .players import PlayerInfo
|
||||
from .character import CharacterInfo
|
||||
|
||||
__all__ = ("EnkaNetworkResponse",)
|
||||
|
||||
class EnkaNetworkResponse(BaseModel):
|
||||
player: PlayerInfo = Field(None, alias="playerInfo")
|
||||
characters: List[CharacterInfo] = Field(None, alias="avatarInfoList")
|
||||
ttl: int = 0
|
Loading…
Reference in New Issue
Block a user