ruff
d0a231cc - [ty] Dataclass transform: neither frozen nor non-frozen (#23366)

Commit
18 hours ago
[ty] Dataclass transform: neither frozen nor non-frozen (#23366) ## Summary Implement the semantics described [here in the typing spec](https://typing.python.org/en/latest/spec/dataclasses.html#dataclass-semantics): > Frozen dataclasses cannot inherit from non-frozen dataclasses. A class that has been decorated with `dataclass_transform` **is considered neither frozen nor non-frozen**, thus allowing frozen classes to inherit from it. Similarly, a class that directly specifies a metaclass that is decorated with `dataclass_transform` is considered neither frozen nor non-frozen. ## Test Plan New Markdown tests for all flavors of `dataclass_transform`ers.
Author
Parents
Loading