Skip to content

Don't wrap user-defined __post_init__ function.#1206

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_366889549
Apr 6, 2021
Merged

Don't wrap user-defined __post_init__ function.#1206
copybara-service[bot] merged 1 commit into
masterfrom
test_366889549

Conversation

@copybara-service
Copy link
Copy Markdown

@copybara-service copybara-service Bot commented Apr 6, 2021

Don't wrap user-defined post_init function.

To make setup() sound under laziness we removed the ability to "normalize"
dataclass attributes from setup(). For those requiring this feature, allow
the use of a custom post_init (which of course must call super().post_init)
by not accidentally breaking it with our automatic method wrapping.

To make setup() sound under laziness we removed the ability to "normalize"
dataclass attributes from setup().  For those requiring this feature, allow
the use of a custom __post_init__ (which of course must call super().__post_init__)
by not accidentally breaking it with our automatic method wrapping.

PiperOrigin-RevId: 367076810
@copybara-service copybara-service Bot merged commit bc31315 into master Apr 6, 2021
@copybara-service copybara-service Bot deleted the test_366889549 branch April 6, 2021 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant