Skip to content

Call __post_init__ from msgspec.structs.replace/copy.replace - #1000

Merged
jcrist merged 1 commit into
mainfrom
call-post-init-replace
Apr 8, 2026
Merged

jcrist merged 1 commit into
mainfrom
call-post-init-replace

Conversation

@jcrist

@jcrist jcrist commented Apr 8, 2026

Copy link
Copy Markdown
Member

This is a bit of a breaking change, but lets us better align with dataclasses.

Fixes #874.

This is a bit of a breaking change, but lets us better align with
`dataclasses`.
@provinzkraut

provinzkraut commented Apr 8, 2026

Copy link
Copy Markdown
Member

Partially supersedes #933 then. I'll work this in there

@jcrist
jcrist merged commit f13b8cb into main Apr 8, 2026
22 checks passed
@jcrist
jcrist deleted the call-post-init-replace branch April 8, 2026 19:33
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.

__post_init__ not called from replace

2 participants