Conversation
cd9ee25 to
0f7c782
Compare
0f7c782 to
ecaa860
Compare
PYI030
PR Check ResultsEcosystem✅ ecosystem check detected no changes. |
|
Could you gate this fix so it only applies when preview mode is enabled? |
|
I believe I've done this correctly, doesn't seem like any other fix is gated this way. 🤔 If I've done this wrong, please advise! |
crates/ruff_linter/src/rules/flake8_pyi/rules/unnecessary_literal_union.rs
Outdated
Show resolved
Hide resolved
crates/ruff_linter/src/rules/flake8_pyi/rules/unnecessary_literal_union.rs
Outdated
Show resolved
Hide resolved
crates/ruff_linter/src/rules/flake8_pyi/rules/unnecessary_literal_union.rs
Outdated
Show resolved
Hide resolved
|
Hey sorry this is on my todo list to review but I got distracted last week – I'll try to get to this on Monday! |
Take your time! |
…ral_union.rs Co-authored-by: Zanie Blue <contact@zanie.dev>
0b42ef0 to
4729836
Compare
|
| code | total | + violation | - violation | + fix | - fix |
|---|---|---|---|---|---|
| PYI030 | 6 | 0 | 0 | 6 | 0 |
zanieb
left a comment
There was a problem hiding this comment.
This lgtm! Thanks for your patience.
CodSpeed Performance ReportMerging #7934 will improve performances by 12.27%Comparing Summary
Benchmarks breakdown
|
Summary
Part 2 of implementing the reverted autofix for
PYI030Also handles
typing.Unionandtyping_extensions.Literaletc, uses the first subscript name it finds for each offensive line.Test Plan
cargo testand manually