diff --git a/redis/commands/search/commands.py b/redis/commands/search/commands.py index 3bd7d47aa8..d0884b29ac 100644 --- a/redis/commands/search/commands.py +++ b/redis/commands/search/commands.py @@ -372,7 +372,7 @@ def info(self): return dict(zip(it, it)) def get_params_args( - self, query_params: Union[Dict[str, Union[str, int, float]], None] + self, query_params: Union[Dict[str, Union[str, int, float, bytes]], None] ): if query_params is None: return [] @@ -385,7 +385,9 @@ def get_params_args( args.append(value) return args - def _mk_query_args(self, query, query_params: Dict[str, Union[str, int, float]]): + def _mk_query_args( + self, query, query_params: Union[Dict[str, Union[str, int, float, bytes]], None] + ): args = [self.index_name] if isinstance(query, str): @@ -402,7 +404,7 @@ def _mk_query_args(self, query, query_params: Dict[str, Union[str, int, float]]) def search( self, query: Union[str, Query], - query_params: Dict[str, Union[str, int, float]] = None, + query_params: Union[Dict[str, Union[str, int, float, bytes]], None] = None, ): """ Search the index for a given query, and return a result of documents