Skip to content

fix(dto/msgspec_dto): Fix KeyError when ClassVar exists on msgspec dto struct#4669

Merged
provinzkraut merged 2 commits intolitestar-org:mainfrom
Peopl3s:fix-4665
Apr 4, 2026
Merged

fix(dto/msgspec_dto): Fix KeyError when ClassVar exists on msgspec dto struct#4669
provinzkraut merged 2 commits intolitestar-org:mainfrom
Peopl3s:fix-4665

Conversation

@Peopl3s
Copy link
Copy Markdown
Contributor

@Peopl3s Peopl3s commented Apr 4, 2026

Description

Fix KeyError when ClassVar exists on msgspec dto struct

Closes #4665


📚 Documentation preview 📚: https://litestar-org.github.io/litestar-docs-preview/4669

@Peopl3s Peopl3s requested review from a team as code owners April 4, 2026 14:33
@github-actions github-actions bot added area/docs This PR involves changes to the documentation area/dto This PR involves changes to the DTOs size: small type/bug labels Apr 4, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 67.33%. Comparing base (1a133ca) to head (1f30b8f).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4669   +/-   ##
=======================================
  Coverage   67.33%   67.33%           
=======================================
  Files         292      292           
  Lines       14939    14941    +2     
  Branches     1675     1676    +1     
=======================================
+ Hits        10059    10061    +2     
  Misses       4743     4743           
  Partials      137      137           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Member

@provinzkraut provinzkraut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@provinzkraut provinzkraut merged commit 69a1ad9 into litestar-org:main Apr 4, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/docs This PR involves changes to the documentation area/dto This PR involves changes to the DTOs pr/external size: small Triage Required 🏥 This requires triage type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: KeyError when a ClassVar exists on msgspec dto struct

2 participants