mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-22 10:02:37 +00:00
Change NotInTest to NotIsTest
This commit is contained in:
parent
e81efa5a3d
commit
0fe2b15676
2 changed files with 4 additions and 4 deletions
|
@ -241,7 +241,7 @@ pub fn not_tests(
|
|||
Cmpop::Is => {
|
||||
if check_not_is {
|
||||
let mut check =
|
||||
Check::new(CheckKind::NotInTest, Range::from_located(operand));
|
||||
Check::new(CheckKind::NotIsTest, Range::from_located(operand));
|
||||
if checker.patch() && should_fix {
|
||||
if let Some(content) = compare(left, &[Cmpop::IsNot], comparators) {
|
||||
check.amend(Fix::replacement(
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
source: src/linter.rs
|
||||
expression: checks
|
||||
---
|
||||
- kind: NotInTest
|
||||
- kind: NotIsTest
|
||||
location:
|
||||
row: 2
|
||||
column: 7
|
||||
|
@ -19,7 +19,7 @@ expression: checks
|
|||
row: 2
|
||||
column: 13
|
||||
applied: false
|
||||
- kind: NotInTest
|
||||
- kind: NotIsTest
|
||||
location:
|
||||
row: 5
|
||||
column: 7
|
||||
|
@ -36,7 +36,7 @@ expression: checks
|
|||
row: 5
|
||||
column: 15
|
||||
applied: false
|
||||
- kind: NotInTest
|
||||
- kind: NotIsTest
|
||||
location:
|
||||
row: 8
|
||||
column: 7
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue