Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dataclass.replace: allow transformed classes (#15915)
We [already synthesize](#15843 (comment)) `__dataclass_fields__` for all classes including `@dataclass_transform`'d ones, thus assume more than PEP-681 says. We might as well assume `dataclasses.replace` applies on all same classes. This way we risk false positive since it'll raise in runtime. Fixes #15843.
- Loading branch information