Skip to content

Commit a0b4bf2

Browse files
authored
Typos in commands.py
1 parent 67ab74d commit a0b4bf2

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

redis/commands/vectorset/commands.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def vadd(
7777
``numlinks`` sets the number of links to create for the vector.
7878
If not provided, the default number of links is used.
7979
80-
For more information see https://redis.io/commands/vadd
80+
For more information, see https://redis.io/commands/vadd.
8181
"""
8282
if not vector or not element:
8383
raise DataError("Both vector and element must be provided")
@@ -143,16 +143,16 @@ def vsim(
143143
144144
``ef`` sets the exploration factor.
145145
146-
``filter`` sets filter that should be applied for the search.
146+
``filter`` sets the filter that should be applied for the search.
147147
148148
``filter_ef`` sets the max filtering effort.
149149
150-
``truth`` when enabled forces the command to perform linear scan.
150+
``truth`` when enabled, forces the command to perform a linear scan.
151151
152152
``no_thread`` when enabled forces the command to execute the search
153153
on the data structure in the main thread.
154154
155-
For more information see https://redis.io/commands/vsim
155+
For more information, see https://redis.io/commands/vsim.
156156
"""
157157

158158
if not input:
@@ -203,7 +203,7 @@ def vdim(self, key: KeyT) -> Union[Awaitable[int], int]:
203203
204204
Raises `redis.exceptions.ResponseError` if the vector set doesn't exist.
205205
206-
For more information see https://redis.io/commands/vdim
206+
For more information, see https://redis.io/commands/vdim.
207207
"""
208208
return self.execute_command(VDIM_CMD, key)
209209

@@ -213,15 +213,15 @@ def vcard(self, key: KeyT) -> Union[Awaitable[int], int]:
213213
214214
Raises `redis.exceptions.ResponseError` if the vector set doesn't exist.
215215
216-
For more information see https://redis.io/commands/vcard
216+
For more information, see https://redis.io/commands/vcard.
217217
"""
218218
return self.execute_command(VCARD_CMD, key)
219219

220220
def vrem(self, key: KeyT, element: str) -> Union[Awaitable[int], int]:
221221
"""
222222
Remove an element from a vector set.
223223
224-
For more information see https://redis.io/commands/vrem
224+
For more information, see https://redis.io/commands/vrem.
225225
"""
226226
return self.execute_command(VREM_CMD, key, element)
227227

@@ -235,10 +235,10 @@ def vemb(
235235
Get the approximated vector of an element ``element`` from vector set ``key``.
236236
237237
``raw`` is a boolean flag that indicates whether to return the
238-
interal representation used by the vector.
238+
internal representation used by the vector.
239239
240240
241-
For more information see https://redis.io/commands/vembed
241+
For more information, see https://redis.io/commands/vembe.d.
242242
"""
243243
options = {}
244244
pieces = []
@@ -286,7 +286,7 @@ def vlinks(
286286
If the ``WITHSCORES`` option is provided, the result is a list of dicts,
287287
where each dict contains the neighbors for one level, with the scores as values.
288288
289-
For more information see https://redis.io/commands/vlinks
289+
For more information, see https://redis.io/commands/vlinks
290290
"""
291291
options = {}
292292
pieces = []
@@ -302,7 +302,7 @@ def vinfo(self, key: KeyT) -> Union[Awaitable[dict], dict]:
302302
"""
303303
Get information about a vector set.
304304
305-
For more information see https://redis.io/commands/vinfo
305+
For more information, see https://redis.io/commands/vinfo.
306306
"""
307307
return self.execute_command(VINFO_CMD, key)
308308

@@ -313,7 +313,7 @@ def vsetattr(
313313
Associate or remove JSON attributes ``attributes`` of element ``element``
314314
for vector set ``key``.
315315
316-
For more information see https://redis.io/commands/vsetattr
316+
For more information, see https://redis.io/commands/vsetattr
317317
"""
318318
if attributes is None:
319319
attributes_json = "{}"
@@ -329,12 +329,12 @@ def vgetattr(
329329
self, key: KeyT, element: str
330330
) -> Union[Optional[Awaitable[dict]], Optional[dict]]:
331331
"""
332-
Retrieve the JSON attributes of an element ``elemet`` for vector set ``key``.
332+
Retrieve the JSON attributes of an element ``element `` for vector set ``key``.
333333
334334
If the element does not exist, or if the vector set does not exist, None is
335335
returned.
336336
337-
For more information see https://redis.io/commands/vgetattr
337+
For more information, see https://redis.io/commands/vgetattr.
338338
"""
339339
return self.execute_command(VGETATTR_CMD, key, element)
340340

@@ -358,7 +358,7 @@ def vrandmember(
358358
359359
If the vector set does not exist, ``None`` is returned.
360360
361-
For more information see https://redis.io/commands/vrandmember
361+
For more information, see https://redis.io/commands/vrandmember.
362362
"""
363363
pieces = []
364364
pieces.append(key)

0 commit comments

Comments
 (0)