-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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. PiperOrigin-RevId: 549313777
- Loading branch information
Showing
2 changed files
with
59 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters