From be3f28d9053b632105f35a145a55b0068bbf9330 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Mon, 11 Sep 2023 19:40:35 +0300 Subject: [PATCH] Fix `pydantic` warning (#46) --- 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)