mirror of https://github.com/astral-sh/ruff
Add Applicability to flake8_tidy_imports (#5131)
## Summary Fixes some of https://github.com/astral-sh/ruff/issues/4184
This commit is contained in:
parent
1f856aa576
commit
26d19655db
|
|
@ -100,8 +100,7 @@ fn fix_banned_relative_import(
|
|||
range: TextRange::default(),
|
||||
};
|
||||
let content = generator.stmt(&node.into());
|
||||
#[allow(deprecated)]
|
||||
Some(Fix::unspecified(Edit::range_replacement(
|
||||
Some(Fix::suggested(Edit::range_replacement(
|
||||
content,
|
||||
stmt.range(),
|
||||
)))
|
||||
|
|
|
|||
Loading…
Reference in New Issue