Skip to content

Commit a52a4f1

Browse files
committed
formatting
1 parent ec2aa93 commit a52a4f1

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

  • integrations/alloydb/src/haystack_integrations/document_stores/alloydb

integrations/alloydb/src/haystack_integrations/document_stores/alloydb/filters.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -247,11 +247,13 @@ def _like(field: Composable, value: Any) -> tuple[Composed, Any]:
247247
raise FilterError(msg)
248248
return SQL("{} LIKE %s").format(field), value
249249

250+
250251
def _not_like(field: Composable, value: Any) -> tuple[Composed, Any]:
251-
if not isinstance(value, str):
252-
msg = f"{field}'s value must be a str when using 'not like'"
253-
raise FilterError(msg)
254-
return SQL("{} NOT LIKE %s").format(field), value
252+
if not isinstance(value, str):
253+
msg = f"{field}'s value must be a str when using 'not like'"
254+
raise FilterError(msg)
255+
return SQL("{} NOT LIKE %s").format(field), value
256+
255257

256258
COMPARISON_OPERATORS = {
257259
"==": _equal,
@@ -263,5 +265,5 @@ def _not_like(field: Composable, value: Any) -> tuple[Composed, Any]:
263265
"in": _in,
264266
"not in": _not_in,
265267
"like": _like,
266-
"not like": _not_like
268+
"not like": _not_like,
267269
}

0 commit comments

Comments
 (0)