Skip to content

Fix: Enable kw_only=True for chex.dataclass#429

Open
Ashutosh0x wants to merge 1 commit intogoogle-deepmind:mainfrom
Ashutosh0x:fix/issue-305
Open

Fix: Enable kw_only=True for chex.dataclass#429
Ashutosh0x wants to merge 1 commit intogoogle-deepmind:mainfrom
Ashutosh0x:fix/issue-305

Conversation

@Ashutosh0x
Copy link

@Ashutosh0x Ashutosh0x commented Jan 6, 2026

Resolves #305.

Sets kw_only=True by default in chex.dataclass. This fixes the TypeError: non-default argument follows default argument when inheriting from dataclasses with default fields.

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.

TypeError: non-default argument 'value' follows default argument

1 participant