Skip to content

Commit 794413a

Browse files
author
DevFactory AI
committed
fix(backend): annotate DEFAULT_SECRET_KEY as ClassVar to fix PydanticUserError
1 parent 647bc37 commit 794413a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

getcloser/backend/app/core/config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os
2+
from typing import ClassVar
23
from pydantic import field_validator
34
from pydantic_settings import BaseSettings
45

@@ -10,7 +11,7 @@ class Settings(BaseSettings):
1011
JWT 안쓸 것 같아 일단 주석 처리하고 추후 확정 시 삭제
1112
"""
1213
# Secret key for JWT signing. Must be overridden in production using environment variables.
13-
DEFAULT_SECRET_KEY = "default-secret-key-change-it"
14+
DEFAULT_SECRET_KEY: ClassVar[str] = "default-secret-key-change-it"
1415
SECRET_KEY: str = os.getenv("SECRET_KEY", DEFAULT_SECRET_KEY)
1516

1617
@field_validator("SECRET_KEY")

0 commit comments

Comments
 (0)