Skip to content

Commit 3b47b30

Browse files
committed
Use edit literal instead of tuple.
1 parent bbba180 commit 3b47b30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_mongodb_backend/indexes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def check(self, model, connection):
227227
# filter - for fields that contain boolean, date, objectId,
228228
# numeric, string, or UUID values. Reference:
229229
# https://www.mongodb.com/docs/atlas/atlas-vector-search/vector-search-type/#atlas-vector-search-index-fields
230-
if search_type not in ("number", "string", "boolean", "objectId", "uuid", "date"):
230+
if search_type not in {"number", "string", "boolean", "objectId", "uuid", "date"}:
231231
errors.append(
232232
Error(
233233
f"Unsupported filter of type {field_.get_internal_type()}.",

0 commit comments

Comments
 (0)