-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
acceptedReady for implementationReady for implementationruleImplementing or modifying a lint ruleImplementing or modifying a lint rule
Description
When running ruff --select=B006 b006.py --fix on a function like this
def test(arg=[]):
import osthe fix would be:
def test(arg=None):
if arg is None:
arg = []
import osI would like to see the fix move below the import like this:
def test(arg=None):
import os
if arg is None:
arg = []For my own enjoyment, I have already started implementing this here. Though, as this is the first time I have written any Rust, it could likely be improved upon 😅
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
acceptedReady for implementationReady for implementationruleImplementing or modifying a lint ruleImplementing or modifying a lint rule