Skip to content

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

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

Call __post_init__ from msgspec.structs.replace/copy.replace#1000
jcrist merged 1 commit intomainfrom
call-post-init-replace

Conversation

@jcrist
Copy link
Copy Markdown
Owner

@jcrist jcrist commented Apr 8, 2026

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
Copy link
Copy Markdown
Contributor

provinzkraut commented Apr 8, 2026

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