EnkaNetwork.py/enkanetwork/model/utils.py
xSTACIA fc4c09ae0b renamed __pydantic_self__ to self
remove PyPEP8 E501
example `asyncio.loop` to `asyncio.run`

examples: pass all
2022-08-17 11:54:16 +07:00

14 lines
293 B
Python

from pydantic import BaseModel
from typing import Any
from ..utils import create_ui_path
class IconAsset(BaseModel):
filename: str = ""
url: str = ""
def __init__(self, **data: Any) -> None:
super().__init__(**data)
self.url = create_ui_path(self.filename)