ruff
96f62886 - Move `UP034` to use `TokenKind` instead of `Tok` (#11424)

Commit
1 year ago
Move `UP034` to use `TokenKind` instead of `Tok` (#11424) ## Summary This PR follows up from #11420 to move `UP034` to use `TokenKind` instead of `Tok`. The main reason to have a separate PR is so that the reviewing is easy. This required a lot more updates because the rule used an index (`i`) to keep track of the current position in the token vector. Now, as it's just an iterator, we just use `next` to move the iterator forward and extract the relevant information. This is part of https://github.com/astral-sh/ruff/issues/11401 ## Test Plan `cargo test`
Author
Parents
Loading