diff --git a/crates/ruff_linter/src/rules/flake8_boolean_trap/helpers.rs b/crates/ruff_linter/src/rules/flake8_boolean_trap/helpers.rs index 58764a783a7fa7..038ab49c12d2ad 100644 --- a/crates/ruff_linter/src/rules/flake8_boolean_trap/helpers.rs +++ b/crates/ruff_linter/src/rules/flake8_boolean_trap/helpers.rs @@ -12,7 +12,7 @@ pub(super) fn is_allowed_func_call(name: &str) -> bool { | "assertNotEquals" | "bool" | "bytes" - // | "coalesce" + | "coalesce" | "count" | "failIfEqual" | "failUnlessEqual" diff --git a/crates/ruff_linter/src/rules/flake8_boolean_trap/snapshots/ruff_linter__rules__flake8_boolean_trap__tests__FBT003_FBT.py.snap b/crates/ruff_linter/src/rules/flake8_boolean_trap/snapshots/ruff_linter__rules__flake8_boolean_trap__tests__FBT003_FBT.py.snap index 3e59e30e7d775d..d2b902114550b5 100644 --- a/crates/ruff_linter/src/rules/flake8_boolean_trap/snapshots/ruff_linter__rules__flake8_boolean_trap__tests__FBT003_FBT.py.snap +++ b/crates/ruff_linter/src/rules/flake8_boolean_trap/snapshots/ruff_linter__rules__flake8_boolean_trap__tests__FBT003_FBT.py.snap @@ -38,12 +38,4 @@ FBT.py:69:38: FBT003 Boolean positional value in function call 71 | bar.is_not(False) | -FBT.py:73:31: FBT003 Boolean positional value in function call - | -71 | bar.is_not(False) -72 | next(iter([]), False) -73 | sa.func.coalesce(tbl.c.valid, False) - | ^^^^^ FBT003 - | -