Skip to content

tentative migrate pyright to ty#6465

Draft
benedikt-bartscher wants to merge 33 commits into
reflex-dev:mainfrom
benedikt-bartscher:migrate-pyright-to-ty
Draft

tentative migrate pyright to ty#6465
benedikt-bartscher wants to merge 33 commits into
reflex-dev:mainfrom
benedikt-bartscher:migrate-pyright-to-ty

Conversation

@benedikt-bartscher
Copy link
Copy Markdown
Contributor

@benedikt-bartscher benedikt-bartscher commented May 6, 2026

time ty check
...
ty check  6.93s user 0.22s system 1415% cpu 0.505 total

time pyright
...
pyright  23.59s user 0.74s system 168% cpu 14.470 total

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented May 6, 2026

Merging this PR will not alter performance

✅ 24 untouched benchmarks


Comparing benedikt-bartscher:migrate-pyright-to-ty (16a3c8d) with main (e88acf7)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (7281317) during the generation of this report, so e88acf7 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

Resolve conflicts from upstream's memo refactor (reflex-dev#6517, promote rx._x.memo
to rx.memo): memo implementation moved to reflex_base.components.memo and
CustomComponent was removed. Re-apply the ty migration changes onto the new
locations:

- reflex/experimental/memo.py: take upstream's deprecated alias
- reflex_base/components/memo.py: type fn params as FunctionType and add
  ty:ignore for dynamic __signature__ assignment
- tests: drop CustomComponent tests removed upstream; carry ty:ignore
  comments onto the relocated memo/telemetry tests
- pyproject.toml / uv.lock: keep both towncrier (upstream) and ty (HEAD)
- pyi_hashes.json: regenerated

ty check, ruff, and the unit suite pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant