ruff
bb1c107a - Move most of token-based rules to use `TokenKind` (#11420)

Commit
1 year ago
Move most of token-based rules to use `TokenKind` (#11420) ## Summary This PR moves the following rules to use `TokenKind` instead of `Tok`: * `PLE2510`, `PLE2512`, `PLE2513`, `PLE2514`, `PLE2515` * `E701`, `E702`, `E703` * `ISC001`, `ISC002` * `COM812`, `COM818`, `COM819` * `W391` I've paused here because the next set of rules (`pyupgrade::rules::extraneous_parentheses`) indexes into the token slice but we only have an iterator implementation. So, I want to isolate that change to make sure the logic is still the same when I move to using the iterator approach. This is part of #11401 ## Test Plan `cargo test`
Author
Parents
Loading