summaryrefslogtreecommitdiff
path: root/redis/commands/search/indexDefinition.py
diff options
context:
space:
mode:
Diffstat (limited to 'redis/commands/search/indexDefinition.py')
-rw-r--r--redis/commands/search/indexDefinition.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/redis/commands/search/indexDefinition.py b/redis/commands/search/indexDefinition.py
index 4fbc609..0c7a3b0 100644
--- a/redis/commands/search/indexDefinition.py
+++ b/redis/commands/search/indexDefinition.py
@@ -8,7 +8,7 @@ class IndexType(Enum):
JSON = 2
-class IndexDefinition(object):
+class IndexDefinition:
"""IndexDefinition is used to define a index definition for automatic
indexing on Hash or Json update."""
@@ -38,8 +38,7 @@ class IndexDefinition(object):
elif index_type is IndexType.JSON:
self.args.extend(["ON", "JSON"])
elif index_type is not None:
- raise RuntimeError("index_type must be one of {}".
- format(list(IndexType)))
+ raise RuntimeError(f"index_type must be one of {list(IndexType)}")
def _appendPrefix(self, prefix):
"""Append PREFIX."""