Skip to content

Commit

Permalink
Update Python imports in doctests (index_definition => indexDefinitio…
Browse files Browse the repository at this point in the history
…n) (#3490)
  • Loading branch information
dwdougherty authored Feb 4, 2025
1 parent c675a56 commit b7d4c48
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion doctests/query_agg.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from redis.commands.search import Search
from redis.commands.search.aggregation import AggregateRequest
from redis.commands.search.field import NumericField, TagField
from redis.commands.search.index_definition import IndexDefinition, IndexType
from redis.commands.search.indexDefinition import IndexDefinition, IndexType
import redis.commands.search.reducers as reducers

r = redis.Redis(decode_responses=True)
Expand Down
2 changes: 1 addition & 1 deletion doctests/query_combined.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import warnings
from redis.commands.json.path import Path
from redis.commands.search.field import NumericField, TagField, TextField, VectorField
from redis.commands.search.index_definition import IndexDefinition, IndexType
from redis.commands.search.indexDefinition import IndexDefinition, IndexType
from redis.commands.search.query import Query
from sentence_transformers import SentenceTransformer

Expand Down
2 changes: 1 addition & 1 deletion doctests/query_em.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import redis
from redis.commands.json.path import Path
from redis.commands.search.field import TextField, NumericField, TagField
from redis.commands.search.index_definition import IndexDefinition, IndexType
from redis.commands.search.indexDefinition import IndexDefinition, IndexType
from redis.commands.search.query import NumericFilter, Query

r = redis.Redis(decode_responses=True)
Expand Down
2 changes: 1 addition & 1 deletion doctests/query_ft.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import redis
from redis.commands.json.path import Path
from redis.commands.search.field import TextField, NumericField, TagField
from redis.commands.search.index_definition import IndexDefinition, IndexType
from redis.commands.search.indexDefinition import IndexDefinition, IndexType
from redis.commands.search.query import NumericFilter, Query

r = redis.Redis(decode_responses=True)
Expand Down
2 changes: 1 addition & 1 deletion doctests/query_geo.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import redis
from redis.commands.json.path import Path
from redis.commands.search.field import GeoField, GeoShapeField
from redis.commands.search.index_definition import IndexDefinition, IndexType
from redis.commands.search.indexDefinition import IndexDefinition, IndexType
from redis.commands.search.query import Query

r = redis.Redis(decode_responses=True)
Expand Down
2 changes: 1 addition & 1 deletion doctests/query_range.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import redis
from redis.commands.json.path import Path
from redis.commands.search.field import TextField, NumericField, TagField
from redis.commands.search.index_definition import IndexDefinition, IndexType
from redis.commands.search.indexDefinition import IndexDefinition, IndexType
from redis.commands.search.query import NumericFilter, Query

r = redis.Redis(decode_responses=True)
Expand Down
2 changes: 1 addition & 1 deletion doctests/search_quickstart.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import redis.commands.search.reducers as reducers
from redis.commands.json.path import Path
from redis.commands.search.field import NumericField, TagField, TextField
from redis.commands.search.index_definition import IndexDefinition, IndexType
from redis.commands.search.indexDefinition import IndexDefinition, IndexType
from redis.commands.search.query import Query

# HIDE_END
Expand Down
2 changes: 1 addition & 1 deletion doctests/search_vss.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
TextField,
VectorField,
)
from redis.commands.search.index_definition import IndexDefinition, IndexType
from redis.commands.search.indexDefinition import IndexDefinition, IndexType
from redis.commands.search.query import Query
from sentence_transformers import SentenceTransformer

Expand Down

0 comments on commit b7d4c48

Please sign in to comment.