Skip to content

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

Merged
jcrist merged 1 commit into
mainfrom
dataclass-frozen-slots-defaults
Oct 17, 2023
Merged

Fix bug handling default values for frozen & slotted dataclasses#569
jcrist merged 1 commit into
mainfrom
dataclass-frozen-slots-defaults

Conversation

@jcrist

@jcrist jcrist commented Oct 17, 2023

Copy link
Copy Markdown
Member

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
@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