Repository navigation
refactor: drop pylance compatibility shims from the read/write path - #5303
Open
jonasdedden wants to merge 1 commit into
Open
jonasdedden wants to merge 1 commit into
jonasdedden wants to merge 1 commit into
Conversation
jonasdedden
force-pushed
the
refactor/pylance-12-write-path-shims
branch
from
October 4, 2026 09:52
12935ae to
1bb3102
Compare
pylance 12 is now the minimum, and every API these shims probed for has been available since well before it: - utils: remove the pylance 4.x `namespace` / `storage_options_provider` path (`_pylance_version`, `_create_storage_options_provider`) and the `get_write_fragments_kwargs` alias of `get_namespace_kwargs`. - fragment: stop probing `write_fragments`' signature and pass the fragment write options directly; their pylance defaults match the values we would otherwise have omitted. `prepare_fragment_write_options` keeps its real validation (mutually exclusive `target_bases` / `target_all_bases`, the ingest warning) and drops the now unused `base_store_params` argument. - datasource: drop the `initial_storage_options` / `serialized_manifest` fallbacks. - tests: remove `tests/_utils.py`, the skips built on it, the "unsupported by the installed pylance" tests and the import fallbacks for `DatasetBasePath` / `blob_array` / `blob_field`.
jonasdedden
force-pushed
the
refactor/pylance-12-write-path-shims
branch
from
October 24, 2026 20:41
1bb3102 to
d66f6cb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Part 1/3 of splitting up #5301. Now that #5295 made
pylance>=12.0.0the minimum, this removes the pylance compatibility shims from the read/write path. Each removed shim guarded an API that every supported pylance release has.utils.py: removed the pylance 4.xnamespace/storage_options_providerpath (_pylance_version,_create_storage_options_provider).LanceNamespaceStorageOptionsProviderdoesn't exist in any supported release.get_write_fragments_kwargswas an alias ofget_namespace_kwargs, so it's removed too.fragment.py: no more probing ofwrite_fragments' signature, and no more "installed pylance does not support ..." errors. The fragment write options are now passed directly.None/"reference"/False) match what we used to leave out, so the behavior is unchanged.prepare_fragment_write_optionskeeps its real validation:target_basesandtarget_all_basesare mutually exclusive, and it still warns whenallow_external_blob_outside_basesis combined withingest. It drops thebase_store_paramsargument, which it only used for the removed probing.datasource.py: removed theinitial_storage_optionsandserialized_manifestfallbacks.tests/_utils.pyand theskipifs that used it.DatasetBasePath/blob_array/blob_field.Compatibility
lance_rayor listed in a module's__all__.pyproject.tomlno longer allows.pyproject.tomlanduv.lockare untouched.Testing
uv run mypy(strict),ruff check,ruff format --check: cleanpyteston this branch (test_basic_read_write,test_blob,test_blob_v2,test_fragment, namespace indexing): 70 passed, 0 skipped