Skip to content

Feature request: Autofix for none-not-at-end-of-union (RUF036) #15136

@Avasam

Description

@Avasam

I tried out RUF036 (in preview) today in typeshed and it found 140 errors. That would take a long time to fix manually, and I imagine an autofix for this rule should be doable.

As usual, marking it "unsafe" when comments are in the way is fine.

Ruff 0.8.4
Command: ruff check --fix --preview --isolated --select=RUF036

Metadata

Metadata

Labels

acceptedReady for implementationfixesRelated to suggested fixes for violationshelp wantedContributions especially welcome

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions