From faf808e592821e237b1361149b9fec4281738bfa Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Mon, 11 Sep 2023 19:35:08 +0300 Subject: [PATCH] Fix `pydantic` warning --- server/common/pydantic_model.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/common/pydantic_model.py b/server/common/pydantic_model.py index 7dc0be70..f6801904 100644 --- a/server/common/pydantic_model.py +++ b/server/common/pydantic_model.py @@ -4,5 +4,4 @@ class BaseModel(pydantic.BaseModel): """Base immutable model for our internal use.""" - class Config(object): - frozen = True + model_config = pydantic.ConfigDict(frozen=True)