ruff
ce811033 - [`pyupgrade`] Handle multiple base classes for PEP 695 generics (`UP046`) (#15659)

Commit
234 days ago
[`pyupgrade`] Handle multiple base classes for PEP 695 generics (`UP046`) (#15659) ## Summary Addresses the second follow up to #15565 in #15642. This was easier than expected by using this cool destructuring syntax I hadn't used before, and by assuming [PYI059](https://docs.astral.sh/ruff/rules/generic-not-last-base-class/) (`generic-not-last-base-class`). ## Test Plan Using an existing test, plus two new tests combining multiple base classes and multiple generics. It looks like I deleted a relevant test, which I did, but I meant to rename this in #15565. It looks like instead I copied it and renamed the copy. --------- Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Author
Parents
Loading