From 999a50a76b5e99105b46732ad0209638641f7471 Mon Sep 17 00:00:00 2001 From: Automated Action Date: Thu, 22 May 2025 12:48:16 +0000 Subject: [PATCH] Fix Pydantic model error by adding ClassVar annotation to DB_DIR --- app/core/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/core/config.py b/app/core/config.py index f4efd8e..ebba67e 100644 --- a/app/core/config.py +++ b/app/core/config.py @@ -1,5 +1,5 @@ from pathlib import Path -from typing import List +from typing import List, ClassVar from pydantic import BaseModel @@ -11,7 +11,7 @@ class Settings(BaseModel): CORS_ORIGINS: List[str] = ["*"] # Database settings - DB_DIR = Path("/app") / "storage" / "db" + DB_DIR: ClassVar[Path] = Path("/app") / "storage" / "db" DB_DIR.mkdir(parents=True, exist_ok=True) DATABASE_URL: str = f"sqlite:///{DB_DIR}/db.sqlite"