From 359453850991f735f16b2284e87beef368da9993 Mon Sep 17 00:00:00 2001 From: Wyatt Alt Date: Wed, 8 Oct 2025 04:41:30 -0700 Subject: [PATCH] fix: add name to index config and fix create_index typing (#2660) Co-authored-by: Mark McCaskey --- python/python/lancedb/_lancedb.pyi | 1 + python/python/lancedb/remote/table.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/python/python/lancedb/_lancedb.pyi b/python/python/lancedb/_lancedb.pyi index 5a26c9a9..68900a92 100644 --- a/python/python/lancedb/_lancedb.pyi +++ b/python/python/lancedb/_lancedb.pyi @@ -133,6 +133,7 @@ class Tags: async def update(self, tag: str, version: int): ... class IndexConfig: + name: str index_type: str columns: List[str] diff --git a/python/python/lancedb/remote/table.py b/python/python/lancedb/remote/table.py index ca8788a1..81d46d35 100644 --- a/python/python/lancedb/remote/table.py +++ b/python/python/lancedb/remote/table.py @@ -114,7 +114,7 @@ class RemoteTable(Table): index_type: Literal["BTREE", "BITMAP", "LABEL_LIST", "scalar"] = "scalar", *, replace: bool = False, - wait_timeout: timedelta = None, + wait_timeout: Optional[timedelta] = None, name: Optional[str] = None, ): """Creates a scalar index @@ -153,7 +153,7 @@ class RemoteTable(Table): column: str, *, replace: bool = False, - wait_timeout: timedelta = None, + wait_timeout: Optional[timedelta] = None, with_position: bool = False, # tokenizer configs: base_tokenizer: str = "simple",