File tree Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 4949
5050# Redis 5.x compatibility (6 fixed the import path)
5151if redis_version .startswith ("5" ):
52- from redis .commands .search .index_definition import IndexDefinition
52+ from redis .commands .search .indexDefinition import ( # type: ignore[import-untyped]
53+ IndexDefinition ,
54+ )
5355else :
54- from redis .commands .search .indexDefinition import ( # type: ignore[import-untyped, no-redef]
56+ from redis .commands .search .index_definition import ( # type: ignore[no-redef]
5557 IndexDefinition ,
5658 )
5759
Original file line number Diff line number Diff line change 2121
2222# Redis 5.x compatibility (6 fixed the import path)
2323if redis_version .startswith ("5" ):
24- from redis .commands .search .index_definition import IndexType
24+ from redis .commands .search .indexDefinition import ( # type: ignore[import-untyped]
25+ IndexType ,
26+ )
2527else :
26- from redis .commands .search .indexDefinition import IndexType # type: ignore[import-untyped, no-redef]
28+ from redis .commands .search .index_definition import ( # type: ignore[no-redef]
29+ IndexType ,
30+ )
2731
2832from redisvl .exceptions import SchemaValidationError
2933from redisvl .redis .utils import convert_bytes
Original file line number Diff line number Diff line change 2525
2626# Redis 5.x compatibility (6 fixed the import path)
2727if redis_version .startswith ("5" ):
28- from redis .commands .search .index_definition import IndexDefinition
28+ from redis .commands .search .indexDefinition import ( # type: ignore[import-untyped]
29+ IndexDefinition ,
30+ )
2931else :
30- from redis .commands .search .indexDefinition import ( # type: ignore[import-untyped, no-redef]
32+ from redis .commands .search .index_definition import ( # type: ignore[no-redef]
3133 IndexDefinition ,
3234 )
3335
You can’t perform that action at this time.
0 commit comments