Skip to content

Commit 74b00c9

Browse files
Fix commented-out coalesce keyword (#7876)
See: #7874 (comment).
1 parent 97e9440 commit 74b00c9

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

crates/ruff_linter/src/rules/flake8_boolean_trap/helpers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub(super) fn is_allowed_func_call(name: &str) -> bool {
1212
| "assertNotEquals"
1313
| "bool"
1414
| "bytes"
15-
// | "coalesce"
15+
| "coalesce"
1616
| "count"
1717
| "failIfEqual"
1818
| "failUnlessEqual"

crates/ruff_linter/src/rules/flake8_boolean_trap/snapshots/ruff_linter__rules__flake8_boolean_trap__tests__FBT003_FBT.py.snap

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,4 @@ FBT.py:69:38: FBT003 Boolean positional value in function call
3838
71 | bar.is_not(False)
3939
|
4040

41-
FBT.py:73:31: FBT003 Boolean positional value in function call
42-
|
43-
71 | bar.is_not(False)
44-
72 | next(iter([]), False)
45-
73 | sa.func.coalesce(tbl.c.valid, False)
46-
| ^^^^^ FBT003
47-
|
48-
4941

0 commit comments

Comments
 (0)