Skip to content

Fix msgspec decoder typing with msgspec 0.23 - #207

Merged
lesnik512 merged 1 commit into
mainfrom
fix/scheduled-msgspec-typing
Nov 30, 2026
Merged

lesnik512 merged 1 commit into
mainfrom
fix/scheduled-msgspec-typing

Conversation

@lesnik512

@lesnik512 lesnik512 commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Tracks #206.

msgspec 0.23.0 types the decoder argument as TypeForm. The private adapter receives runtime models through the decoder cache, so annotate the callback parameter with Any, matching the Pydantic adapter. The runtime probe and public signatures stay the same.

ty msgspec Before After
0.0.112 0.22.0 Pass Pass
0.0.112 0.23.0 invalid-type-form Pass
0.0.113 0.22.0 Pass Pass
0.0.113 0.23.0 invalid-type-form Pass

Python 3.11 verification included just install lint-ci and 112 decoder, caching, and dispatch tests.

@lesnik512
lesnik512 merged commit 7e3e696 into main Nov 30, 2026
17 checks passed
@lesnik512
lesnik512 deleted the fix/scheduled-msgspec-typing branch November 30, 2026 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant