Skip to content

Set kw_only=True in all dataclasses#758

Merged
mateusz834 merged 1 commit intodevelopfrom
dev/MP/kw-only
May 5, 2026
Merged

Set kw_only=True in all dataclasses#758
mateusz834 merged 1 commit intodevelopfrom
dev/MP/kw-only

Conversation

@mateusz834
Copy link
Copy Markdown
Member

@mateusz834 mateusz834 commented Apr 30, 2026

Make all public dataclasses keyword-only using kw_only=True to allow flexible field ordering. This enables adding new fields or reordering existing ones without breaking positional initialization. This is important in terms of backwards compatibility of the SDK.

@mateusz834 mateusz834 force-pushed the dev/MP/kw-only branch 4 times, most recently from f0c226f to d256220 Compare April 30, 2026 10:35
@mateusz834 mateusz834 marked this pull request as ready for review May 4, 2026 10:59
@mateusz834 mateusz834 merged commit 7b2d6a2 into develop May 5, 2026
5 of 7 checks passed
@mateusz834 mateusz834 deleted the dev/MP/kw-only branch May 5, 2026 06:59
mateusz834 added a commit that referenced this pull request May 5, 2026
I have not rebased #755, but after merge it semantically conflicted with
#758.
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.

3 participants