@@ -871,9 +871,7 @@ def find_near(
871871 query = """
872872 FOR doc IN NEAR(@collection, @latitude, @longitude{})
873873 RETURN doc
874- """ .format (
875- "" if limit is None else ", @limit "
876- )
874+ """ .format ("" if limit is None else ", @limit " )
877875
878876 bind_vars = {
879877 "collection" : self ._name ,
@@ -996,9 +994,7 @@ def find_in_radius(
996994 query = """
997995 FOR doc IN WITHIN(@@collection, @latitude, @longitude, @radius{})
998996 RETURN doc
999- """ .format (
1000- "" if distance_field is None else ", @distance"
1001- )
997+ """ .format ("" if distance_field is None else ", @distance" )
1002998
1003999 bind_vars = {
10041000 "@collection" : self ._name ,
@@ -1080,7 +1076,7 @@ def build_coord_str_from_index(index: Json) -> str:
10801076 coord_str = ""
10811077 if index is None :
10821078 # Find the first geo index
1083- for collection_index in self .indexes (): # type:ignore[union-attr]
1079+ for collection_index in self .indexes (): # type: ignore[union-attr]
10841080 if collection_index ["type" ] == "geo" :
10851081 coord_str = build_coord_str_from_index (collection_index )
10861082 break
@@ -1168,9 +1164,7 @@ def find_by_text(
11681164 aql = """
11691165 FOR doc IN FULLTEXT(@collection, @field, @query{})
11701166 RETURN doc
1171- """ .format (
1172- "" if limit is None else ", @limit"
1173- )
1167+ """ .format ("" if limit is None else ", @limit" )
11741168
11751169 request = Request (
11761170 method = "post" ,
0 commit comments