Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug handling default values for frozen & slotted dataclasses #569

Merged
merged 1 commit into from
Oct 17, 2023

Conversation

jcrist
Copy link
Owner

@jcrist jcrist commented Oct 17, 2023

Previously there was a bug where dataclasses or attrs classes with slots=True, frozen=True wouldn't be able to properly use default values for optional fields.

Fixes #567.

Previously there was a bug where dataclasses or attrs classes with
`slots=True, frozen=True` wouldn't be able to properly use default
values for optional fields.
@jcrist jcrist merged commit 9f5f50b into main Oct 17, 2023
8 checks passed
@jcrist jcrist deleted the dataclass-frozen-slots-defaults branch October 17, 2023 05:54
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.

Bug: dataclass with frozen and slots fails if defaults not provided
1 participant