From adc1dafdc3c85d3ff3683359b58eb80ad85b2f3f Mon Sep 17 00:00:00 2001 From: lance-community Date: Thu, 4 Jun 2026 01:29:30 +0000 Subject: [PATCH] chore: update pylance dependency to v8.0.0b2 --- lance_ray/pool.py | 4 +++- lance_ray/search.py | 12 +++++++++--- pyproject.toml | 2 +- uv.lock | 26 ++++++++++++-------------- 4 files changed, 25 insertions(+), 19 deletions(-) diff --git a/lance_ray/pool.py b/lance_ray/pool.py index a0be996e..6dc374eb 100644 --- a/lance_ray/pool.py +++ b/lance_ray/pool.py @@ -46,7 +46,9 @@ def set_global_pool(pool: Any | None) -> None: global _GLOBAL_POOL, _GLOBAL_POOL_PROCESSES with _GLOBAL_POOL_LOCK: _GLOBAL_POOL = pool - _GLOBAL_POOL_PROCESSES = _read_pool_processes(pool) if pool is not None else None + _GLOBAL_POOL_PROCESSES = ( + _read_pool_processes(pool) if pool is not None else None + ) def get_global_pool() -> Any | None: diff --git a/lance_ray/search.py b/lance_ray/search.py index 3d838d8a..371d10e5 100644 --- a/lance_ray/search.py +++ b/lance_ray/search.py @@ -484,7 +484,9 @@ def _candidate_k(nearest: dict[str, Any], oversample_factor: float) -> tuple[int try: global_k = int(nearest["k"]) except KeyError as exc: - raise ValueError("nearest must include 'k' for distributed vector search") from exc + raise ValueError( + "nearest must include 'k' for distributed vector search" + ) from exc if global_k <= 0: raise ValueError(f"nearest['k'] must be positive, got {global_k}") @@ -618,7 +620,9 @@ def vector_search( worker_table_id = table_id dataset = LanceDataset( dataset_uri, - **_dataset_load_kwargs(merged_storage_options, namespace_kwargs, block_size), + **_dataset_load_kwargs( + merged_storage_options, namespace_kwargs, block_size + ), ) else: dataset = uri @@ -686,7 +690,9 @@ def run_plan(plan: _SearchPlan) -> pa.Table: ) as pool: results = pool.map_async(run_plan, plans, chunksize=1).get() except Exception as exc: # pragma: no cover - exercised via integration tests - raise RuntimeError(f"Failed to complete distributed vector search: {exc}") from exc + raise RuntimeError( + f"Failed to complete distributed vector search: {exc}" + ) from exc if analyze_plan: return _format_analyze_plan_results(results) diff --git a/pyproject.toml b/pyproject.toml index 9b809d48..ba3781e0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,7 +24,7 @@ classifiers = [ dependencies = [ "ray[data]>=2.41.0", - "pylance>=7.0.0b7", + "pylance>=8.0.0b2", "lance-namespace", "packaging", "pyarrow>=17.0.0", diff --git a/uv.lock b/uv.lock index 34c7e9a6..6f70c471 100644 --- a/uv.lock +++ b/uv.lock @@ -326,19 +326,19 @@ wheels = [ [[package]] name = "lance-namespace" -version = "0.7.6" +version = "0.8.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "lance-namespace-urllib3-client" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/2b/da/134670003173881bed44af656badffd91e0b2e0232c083eeacc5923d7335/lance_namespace-0.7.6.tar.gz", hash = "sha256:4e12094005d105ef1b44346c9d7feda4a0f733b127dab90c1a5ffbf7cd433770", size = 10686, upload-time = "2026-05-05T18:26:38.885Z" } +sdist = { url = "https://files.pythonhosted.org/packages/21/80/2b6eaa08c5e25915acaa6368a70211a25b5ba9d2d6006450e68a73936164/lance_namespace-0.8.0.tar.gz", hash = "sha256:c4a79ee221a3b2315c29863ad12d85fcf219a13158e26149d63e21dc4b4673a7", size = 10756, upload-time = "2026-06-01T08:47:10.183Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/83/88/44463a5f41f7077b2ea641f2afded72eaceb6a6a1b4a55c11b22318fed74/lance_namespace-0.7.6-py3-none-any.whl", hash = "sha256:c94a1b8a6aab127e55a20cbf44d927ae3a9b7d435656d2130dccf84ccf7c9999", size = 12519, upload-time = "2026-05-05T18:26:36.425Z" }, + { url = "https://files.pythonhosted.org/packages/4b/bd/7b40a08fb132fab39a6caebf832fdf6b9befc71be9413beb9be0a9d927d4/lance_namespace-0.8.0-py3-none-any.whl", hash = "sha256:782cf9e332f46bf06836722dd98b53ca8495ad98bb541501ff6876c89b67ec90", size = 12579, upload-time = "2026-06-01T08:47:10.91Z" }, ] [[package]] name = "lance-namespace-urllib3-client" -version = "0.7.6" +version = "0.8.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "pydantic" }, @@ -346,9 +346,9 @@ dependencies = [ { name = "typing-extensions" }, { name = "urllib3" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/01/44/024aae184c08b3800482cd9b832d534249e25de145af732d4e4c8dff38a8/lance_namespace_urllib3_client-0.7.6.tar.gz", hash = "sha256:15ae7f0d8d56fa34d837f7f6ec5c80a327a905e89ccfed05f7b409d6fe704cdf", size = 195551, upload-time = "2026-05-05T18:26:37.808Z" } +sdist = { url = "https://files.pythonhosted.org/packages/8c/37/06fcd5a8969381e0ba953d51990af8d331bdccbc62458bf2eed30d064573/lance_namespace_urllib3_client-0.8.0.tar.gz", hash = "sha256:4f060f05ebf3c04aeaeb0d2022cbe77648a3df290f02cd2c305e5797d0fc1fdd", size = 203710, upload-time = "2026-06-01T08:47:13.404Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/00/50/60c983cc8180772c82370dfad2104b7e788aaacc3bf9a84e8b42bb1ae6a7/lance_namespace_urllib3_client-0.7.6-py3-none-any.whl", hash = "sha256:fb884d8afff8af3aae04a3270624694a189d7ea79225dd349e6c555a1a1d6b52", size = 324603, upload-time = "2026-05-05T18:26:39.718Z" }, + { url = "https://files.pythonhosted.org/packages/51/43/e280727feee958f303bc58d5fa912b07734a0831f756d841654d500c2c34/lance_namespace_urllib3_client-0.8.0-py3-none-any.whl", hash = "sha256:6734e341b726e5cc96a0cd257cef27eb9d03013f2d151526ee426cef8e63e228", size = 336669, upload-time = "2026-06-01T08:47:11.88Z" }, ] [[package]] @@ -387,7 +387,7 @@ requires-dist = [ { name = "more-itertools", marker = "python_full_version < '3.12'", specifier = ">=2.6.0" }, { name = "packaging" }, { name = "pyarrow", specifier = ">=17.0.0" }, - { name = "pylance", specifier = ">=7.0.0b7" }, + { name = "pylance", specifier = ">=8.0.0b2" }, { name = "pytest", specifier = ">=8.4.0" }, { name = "pytest-asyncio", marker = "extra == 'dev'", specifier = ">=1.0.0" }, { name = "pytest-cov", specifier = ">=5.0.0" }, @@ -1024,7 +1024,7 @@ wheels = [ [[package]] name = "pylance" -version = "7.0.0b7" +version = "8.0.0b2" source = { registry = "https://pypi.fury.io/lance-format" } dependencies = [ { name = "lance-namespace" }, @@ -1033,12 +1033,10 @@ dependencies = [ { name = "pyarrow" }, ] wheels = [ - { url = "https://pypi.fury.io/lance-format/-/ver_1zsVV4/pylance-7.0.0b7-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:66f2ba7969c0fad259f5d13842e89d664956c1415eed644d6956af333e848a62" }, - { url = "https://pypi.fury.io/lance-format/-/ver_1TtYis/pylance-7.0.0b7-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:029ac2359cccbac62345392c78f5aae6596eda4a3398fbf8bef5aad708591d14" }, - { url = "https://pypi.fury.io/lance-format/-/ver_uZkce/pylance-7.0.0b7-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a53841757573d7c63238d79df94236eb6e46d9508d2690d98ce983e5d04f8c7a" }, - { url = "https://pypi.fury.io/lance-format/-/ver_3iSeD/pylance-7.0.0b7-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:34c67a0102d47f870d4b795087622c16087aa1928c1925b1acdeb61206f4663a" }, - { url = "https://pypi.fury.io/lance-format/-/ver_BpURn/pylance-7.0.0b7-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:ac70f0248239b50ae718e38e69c1418899a1a7575e7b911beac91eeb60b174ec" }, - { url = "https://pypi.fury.io/lance-format/-/ver_jVZS2/pylance-7.0.0b7-cp39-abi3-win_amd64.whl", hash = "sha256:0f1caea57ea998f6e59dcb2684a08e4b06f993ecc77c8d0f032a4a43a82ed085" }, + { url = "https://pypi.fury.io/lance-format/-/ver_1XSqXr/pylance-8.0.0b2-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:52852f093083175c33f1cd3b9cfbf95b9ec9049735f87c5aca2e085110f72dfc" }, + { url = "https://pypi.fury.io/lance-format/-/ver_QZGxw/pylance-8.0.0b2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:607ebb686f6ed3fe27744fcf3c03e3d245b42bcef0a018328ca2cda0b731e0d1" }, + { url = "https://pypi.fury.io/lance-format/-/ver_oc8JW/pylance-8.0.0b2-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:a3ab9c477f702dd921c8267b240e36f7d2b6bb8384b0835caaccf62e18ae2c06" }, + { url = "https://pypi.fury.io/lance-format/-/ver_WbERl/pylance-8.0.0b2-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:8a8749417dc39dadff6322d26ef669b0e025552c96887d2c168ab798caf14ffa" }, ] [[package]]