mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 14:21:53 +00:00
Use a single SourceCodeLocator everywhere (#510)
This commit is contained in:
parent
2fcbf3ab62
commit
db59d5b558
8 changed files with 63 additions and 66 deletions
|
@ -15,7 +15,7 @@ pub fn useless_object_inheritance(
|
|||
if let Some(mut check) = checks::useless_object_inheritance(name, bases, scope) {
|
||||
if checker.patch() {
|
||||
if let Some(fix) = pyupgrade::fixes::remove_class_def_base(
|
||||
checker.get_locator(),
|
||||
checker.locator,
|
||||
&stmt.location,
|
||||
check.location,
|
||||
bases,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue