Skip to content

Commit b7074a7

Browse files
committed
Applying Copilot's review comments
1 parent 5c26576 commit b7074a7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

redis/commands/search/aggregation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import List, Optional, Union
1+
from typing import List, Optional, Tuple, Union
22

33
from redis.commands.search.dialect import DEFAULT_DIALECT
44

@@ -27,7 +27,7 @@ class Reducer:
2727
NAME = None
2828

2929
def __init__(self, *args: str) -> None:
30-
self._args: tuple[str, ...] = args
30+
self._args: Tuple[str, ...] = args
3131
self._field: Optional[str] = None
3232
self._alias: Optional[str] = None
3333

@@ -56,7 +56,7 @@ def alias(self, alias: str) -> "Reducer":
5656
return self
5757

5858
@property
59-
def args(self) -> tuple[str, ...]:
59+
def args(self) -> Tuple[str, ...]:
6060
return self._args
6161

6262

redis/commands/search/query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def __init__(self, query_string: str) -> None:
3131
self._with_scores: bool = False
3232
self._scorer: Optional[str] = None
3333
self._filters: List = list()
34-
self._ids: Optional[Tuple[str]] = None
34+
self._ids: Optional[Tuple[str, ...]] = None
3535
self._slop: int = -1
3636
self._timeout: Optional[float] = None
3737
self._in_order: bool = False

0 commit comments

Comments
 (0)