Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed synthesized comparison methods (
__lt__
, etc.) for dataclass…
…es when `order=True` to use `Self` rather than an instance of the class. This is not only more consistent with other synthesized methods, but it also preserves covariance of type variables if the dataclass is frozen. (#8734)
- Loading branch information