Skip to content

Commit

Permalink
refactor: replace BaseConfig with BaseModel.Config
Browse files Browse the repository at this point in the history
  • Loading branch information
Ljzd-PRO committed Dec 1, 2023
1 parent 0a4520a commit 3aa34ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ktoolbox/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import aiofiles
from loguru import logger
from pydantic import BaseModel, BaseConfig
from pydantic import BaseModel

from ktoolbox.configuration import config
from ktoolbox.enum import RetCodeEnum, DataStorageNameEnum
Expand All @@ -25,7 +25,7 @@ class BaseRet(BaseModel, Generic[_T]):
exception: Optional[Exception] = None
data: Optional[_T] = None

class Config(BaseConfig):
class Config(BaseModel.Config):
arbitrary_types_allowed = True

def __bool__(self):
Expand Down

0 comments on commit 3aa34ef

Please sign in to comment.