fix: pydantic v2
Some checks failed
Fetch Wiki / Fetch-Wiki (push) Failing after 14m50s

This commit is contained in:
xtaodada 2024-12-19 17:12:32 +08:00
parent 826395ea52
commit c9394179c2
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -1,6 +1,6 @@
from typing import List, Optional
from pydantic import BaseModel
from pydantic import BaseModel, ConfigDict
class HeadIcon(BaseModel):
@ -24,6 +24,8 @@ class HeadIcon(BaseModel):
class ForHash(BaseModel):
model_config = ConfigDict(coerce_numbers_to_str=True, arbitrary_types_allowed=True)
Hash: str