Fix commented-out coalesce keyword (#7876)

See:
https://github.com/astral-sh/ruff/pull/7874#issuecomment-1753498994.
This commit is contained in:
Charlie Marsh 2023-10-09 15:11:45 -04:00 committed by GitHub
parent 97e944003b
commit 74b00c9b91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 9 deletions

View file

@ -12,7 +12,7 @@ pub(super) fn is_allowed_func_call(name: &str) -> bool {
| "assertNotEquals" | "assertNotEquals"
| "bool" | "bool"
| "bytes" | "bytes"
// | "coalesce" | "coalesce"
| "count" | "count"
| "failIfEqual" | "failIfEqual"
| "failUnlessEqual" | "failUnlessEqual"

View file

@ -38,12 +38,4 @@ FBT.py:69:38: FBT003 Boolean positional value in function call
71 | bar.is_not(False) 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
|