Skip to content

fix(backend): annotate DEFAULT_SECRET_KEY as ClassVar to fix Pydantic UserError#348

Merged
soohyunme merged 1 commit intomainfrom
fix/pydantic-config-error
Feb 14, 2026
Merged

fix(backend): annotate DEFAULT_SECRET_KEY as ClassVar to fix Pydantic UserError#348
soohyunme merged 1 commit intomainfrom
fix/pydantic-config-error

Conversation

@soohyunme
Copy link
Member

๐Ÿ“ PR ํƒ€์ž…

  • ๋ฒ„๊ทธ ์ˆ˜์ • (fix)
  • ์‹ ๊ทœ ๊ธฐ๋Šฅ (feat)
  • ๋ฌธ์„œ ์—…๋ฐ์ดํŠธ (docs)
  • ์ฝ”๋“œ ์Šคํƒ€์ผ / ํฌ๋งทํŒ… (style)
  • ๋ฆฌํŒฉํ† ๋ง (refactor)
  • ํ…Œ์ŠคํŠธ (test)
  • ๊ธฐํƒ€ (chore, ci ๋“ฑ)

๐Ÿ”จ ์ž‘์—… ๋‚ด์šฉ

Pydantic v2 ํ˜ธํ™˜์„ฑ์„ ์œ„ํ•ด Settings ํด๋ž˜์Šค์˜ ์„ค์ • ์˜ค๋ฅ˜ ์ˆ˜์ •

  • DEFAULT_SECRET_KEY ์†์„ฑ์— ํƒ€์ž… ์–ด๋…ธํ…Œ์ด์…˜์ด ๋ˆ„๋ฝ๋˜์–ด ๋ฐœ์ƒํ•˜๋Š” PydanticUserError ํ•ด๊ฒฐ
  • ํ•ด๋‹น ์†์„ฑ์„ ClassVar[str]๋กœ ๋ช…์‹œ, Pydantic์ด ์ด๋ฅผ ๋ชจ๋ธ ํ•„๋“œ๋กœ ์˜ค์ธํ•˜์ง€ ์•Š๊ณ  ํด๋ž˜์Šค ์ƒ์ˆ˜๋กœ ์ธ์‹ํ•˜๋„๋ก ์ˆ˜์ •
  • typing.ClassVar ์ž„ํฌํŠธ๋ฅผ ์ถ”๊ฐ€

์—ฎ์ธ ์ด์Šˆ

  • Closes #

๐Ÿ“ธ ์Šคํฌ๋ฆฐ์ƒท


๐Ÿง‘โ€๐Ÿ’ป ํ…Œ์ŠคํŠธ ๊ฒฐ๊ณผ


๐Ÿ“… ์ฒดํฌ๋ฆฌ์ŠคํŠธ

  • ์ดํ•ดํ•˜๊ธฐ ์–ด๋ ค์šด ๋ถ€๋ถ„์— ์ฃผ์„์„ ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค.
  • ๊ด€๋ จ๋œ ๋ฌธ์„œ๋ฅผ ์—…๋ฐ์ดํŠธํ–ˆ์Šต๋‹ˆ๋‹ค.

@soohyunme soohyunme merged commit 65d9049 into main Feb 14, 2026
2 checks passed
@soohyunme soohyunme deleted the fix/pydantic-config-error branch February 14, 2026 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant