Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Feature or enhancement
Add a newfrozen_default parameter todataclass_transform similar to the existingeq_default andorder_default parameters.
Pitch
- Frozen dataclasses are very popular when working with Jax (
flax.struct.dataclassandtjax.dataclass), so being able to indicate that they are frozen by default would improve the user experience. dataclass_transformis currently supported by Pyright/Pylance and Pyre. Both teams are in favor of implementing this new parameter. Sincedataclass_transformsupports kwargs for experimentation/extensibility, Pyright was already able toadd support forfrozen_default.- All feedback on typing-sig has been in favor of this enhancement.
Previous discussion
Discussed intyping-sig.