Skip to content

Replace basedpyright with ty for Python type checking - #9546

Open
robert3005 wants to merge 2 commits into
developfrom
claude/vortex-python-basedpyright-ty-6yghm3
Open

Replace basedpyright with ty for Python type checking#9546
robert3005 wants to merge 2 commits into
developfrom
claude/vortex-python-basedpyright-ty-6yghm3

Conversation

@robert3005

@robert3005 robert3005 commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Replace basedpyright with ty. Since ty is a native binary we no longer need to install the package to lint it

Replace basedpyright with Astral's ty type checker for the Python
bindings:

- Swap the shared basedpyright dev dependency for ty and replace the
  [tool.basedpyright] sections with [tool.ty] configuration. First-party
  source roots let ty resolve vortex and vortex_cuda from the in-tree
  sources and stubs, and the vendored obstore stubs stay excluded.
- Update CI workflows, check.sh, and the Python agent guidance to run
  'ty check' instead of basedpyright.
- Drop all now-dead 'pyright: ignore' comments and file-level pyright
  directives. Most suppressed rules have no ty counterpart; where ty
  still diagnoses the same stub or API mismatch, carry the suppression
  over as a targeted 'ty: ignore' comment.
- Annotate _import_cudf_modules with ModuleType instead of object so
  attribute access on the dynamically imported modules type-checks
  without suppressions.

Signed-off-by: "Robert" <robert@spiraldb.com>
ty resolves the vortex package from the in-tree sources and stubs via
the configured source roots, so the lint job only needs the Python
dependencies. Syncing with --no-install-package for the two maturin
packages avoids the ~4.5 min extension build.

Signed-off-by: "Robert" <robert@spiraldb.com>
@robert3005 robert3005 added the changelog/chore A trivial change label Aug 22, 2026
@codspeed-hq

codspeed-hq Bot commented Aug 22, 2026

Copy link
Copy Markdown

Merging this PR will improve performance by 12.4%

⚠️ Unknown Walltime execution environment detected

Using the Walltime instrument on standard Hosted Runners will lead to inconsistent data.

For the most accurate results, we recommend using CodSpeed Macro Runners: bare-metal machines fine-tuned for performance measurement consistency.

⚡ 1 improved benchmark
✅ 1980 untouched benchmarks
⏩ 54 skipped benchmarks1

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Simulation cold_misaligned[(16, 64)] 429.3 µs 382 µs +12.4%

Tip

Curious why this is faster? Comment @codspeedbot explain why this is faster on this PR, or directly use the CodSpeed MCP with your agent.


Comparing claude/vortex-python-basedpyright-ty-6yghm3 (6f50bcb) with develop (f623d85)

Open in CodSpeed

Footnotes

  1. 54 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@robert3005
robert3005 enabled auto-merge (squash) August 22, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/chore A trivial change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant