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

Add support for kw_only for chex.dataclass. #290

Closed
wants to merge 0 commits into from

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Jul 19, 2023

Add support for kw_only for chex.dataclass.

In practice, chex.dataclasses is keyword only, but isn't marked as such for dataclasses, which e.g. prevents doing inheritance across chex.dataclasses with a mix of default and not-defaulted arguments.

The feature is a no-op in Python 3.9 and lower because kw_only was added to dataclasses.dataclass only in Python 3.10.

@copybara-service copybara-service bot force-pushed the test_549239639 branch 4 times, most recently from b36e648 to 316865d Compare July 19, 2023 14:37
@copybara-service copybara-service bot closed this Jul 19, 2023
@copybara-service copybara-service bot deleted the test_549239639 branch July 19, 2023 14:46
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.

0 participants