Skip to content

Commit

Permalink
fix: pydantic v2
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao committed Dec 19, 2024
1 parent 826395e commit c939417
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion models/head_icon.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import List, Optional

from pydantic import BaseModel
from pydantic import BaseModel, ConfigDict


class HeadIcon(BaseModel):
Expand All @@ -24,6 +24,8 @@ def png(self) -> str:


class ForHash(BaseModel):
model_config = ConfigDict(coerce_numbers_to_str=True, arbitrary_types_allowed=True)

Hash: str


Expand Down

0 comments on commit c939417

Please sign in to comment.