Skip to content

Follow-up for deterministic defaults#27

Merged
giograno merged 1 commit into
mainfrom
follow-up-defaults
Apr 23, 2026
Merged

Follow-up for deterministic defaults#27
giograno merged 1 commit into
mainfrom
follow-up-defaults

Conversation

@giograno
Copy link
Copy Markdown
Member

Follow-up of #26.

In dataclasses, an assignment in the variable annotation is considered a default. This value is static, therefore it does not represent a problem for default reproducibility. We want to use a deterministic default only with callable fields.

@giograno giograno requested a review from bentsku April 22, 2026 15:14
@giograno giograno self-assigned this Apr 22, 2026
Copy link
Copy Markdown

@bentsku bentsku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, and nice find! We're getting there, one small refinement at a time 😄

@giograno giograno merged commit 49dd463 into main Apr 23, 2026
6 checks passed
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.

2 participants