From a0b4bf2bba9e5ca992940d6bf1bb74bb66630f3e Mon Sep 17 00:00:00 2001 From: Hunter Hogan Date: Mon, 28 Jul 2025 20:15:31 -0500 Subject: [PATCH] Typos in commands.py --- redis/commands/vectorset/commands.py | 30 ++++++++++++++-------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/redis/commands/vectorset/commands.py b/redis/commands/vectorset/commands.py index c24bd200ce..cce936638c 100644 --- a/redis/commands/vectorset/commands.py +++ b/redis/commands/vectorset/commands.py @@ -77,7 +77,7 @@ def vadd( ``numlinks`` sets the number of links to create for the vector. If not provided, the default number of links is used. - For more information see https://redis.io/commands/vadd + For more information, see https://redis.io/commands/vadd. """ if not vector or not element: raise DataError("Both vector and element must be provided") @@ -143,16 +143,16 @@ def vsim( ``ef`` sets the exploration factor. - ``filter`` sets filter that should be applied for the search. + ``filter`` sets the filter that should be applied for the search. ``filter_ef`` sets the max filtering effort. - ``truth`` when enabled forces the command to perform linear scan. + ``truth`` when enabled, forces the command to perform a linear scan. ``no_thread`` when enabled forces the command to execute the search on the data structure in the main thread. - For more information see https://redis.io/commands/vsim + For more information, see https://redis.io/commands/vsim. """ if not input: @@ -203,7 +203,7 @@ def vdim(self, key: KeyT) -> Union[Awaitable[int], int]: Raises `redis.exceptions.ResponseError` if the vector set doesn't exist. - For more information see https://redis.io/commands/vdim + For more information, see https://redis.io/commands/vdim. """ return self.execute_command(VDIM_CMD, key) @@ -213,7 +213,7 @@ def vcard(self, key: KeyT) -> Union[Awaitable[int], int]: Raises `redis.exceptions.ResponseError` if the vector set doesn't exist. - For more information see https://redis.io/commands/vcard + For more information, see https://redis.io/commands/vcard. """ return self.execute_command(VCARD_CMD, key) @@ -221,7 +221,7 @@ def vrem(self, key: KeyT, element: str) -> Union[Awaitable[int], int]: """ Remove an element from a vector set. - For more information see https://redis.io/commands/vrem + For more information, see https://redis.io/commands/vrem. """ return self.execute_command(VREM_CMD, key, element) @@ -235,10 +235,10 @@ def vemb( Get the approximated vector of an element ``element`` from vector set ``key``. ``raw`` is a boolean flag that indicates whether to return the - interal representation used by the vector. + internal representation used by the vector. - For more information see https://redis.io/commands/vembed + For more information, see https://redis.io/commands/vembe.d. """ options = {} pieces = [] @@ -286,7 +286,7 @@ def vlinks( If the ``WITHSCORES`` option is provided, the result is a list of dicts, where each dict contains the neighbors for one level, with the scores as values. - For more information see https://redis.io/commands/vlinks + For more information, see https://redis.io/commands/vlinks """ options = {} pieces = [] @@ -302,7 +302,7 @@ def vinfo(self, key: KeyT) -> Union[Awaitable[dict], dict]: """ Get information about a vector set. - For more information see https://redis.io/commands/vinfo + For more information, see https://redis.io/commands/vinfo. """ return self.execute_command(VINFO_CMD, key) @@ -313,7 +313,7 @@ def vsetattr( Associate or remove JSON attributes ``attributes`` of element ``element`` for vector set ``key``. - For more information see https://redis.io/commands/vsetattr + For more information, see https://redis.io/commands/vsetattr """ if attributes is None: attributes_json = "{}" @@ -329,12 +329,12 @@ def vgetattr( self, key: KeyT, element: str ) -> Union[Optional[Awaitable[dict]], Optional[dict]]: """ - Retrieve the JSON attributes of an element ``elemet`` for vector set ``key``. + Retrieve the JSON attributes of an element ``element `` for vector set ``key``. If the element does not exist, or if the vector set does not exist, None is returned. - For more information see https://redis.io/commands/vgetattr + For more information, see https://redis.io/commands/vgetattr. """ return self.execute_command(VGETATTR_CMD, key, element) @@ -358,7 +358,7 @@ def vrandmember( If the vector set does not exist, ``None`` is returned. - For more information see https://redis.io/commands/vrandmember + For more information, see https://redis.io/commands/vrandmember. """ pieces = [] pieces.append(key)