From fd7eca550f85e057c4a6257cd6bd18b6781ec172 Mon Sep 17 00:00:00 2001 From: Automated Action Date: Mon, 26 May 2025 15:00:00 +0000 Subject: [PATCH] Fix Pydantic type annotation for DB_DIR in Settings class --- 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 88788ef..6c6cc97 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 ClassVar, List from pydantic_settings import BaseSettings @@ -17,7 +17,7 @@ class Settings(BaseSettings): CORS_ORIGINS: List[str] = ["http://localhost:3000", "http://localhost:8000"] # Database - DB_DIR = Path("/app/storage/db") + DB_DIR: ClassVar[Path] = Path("/app/storage/db") DB_DIR.mkdir(parents=True, exist_ok=True) SQLALCHEMY_DATABASE_URL: str = f"sqlite:///{DB_DIR}/db.sqlite"