Skip to content

Move from pyright to ty#262

Merged
SamDuffield merged 1 commit into
mainfrom
ty
Jun 18, 2026
Merged

Move from pyright to ty#262
SamDuffield merged 1 commit into
mainfrom
ty

Conversation

@SamDuffield

Copy link
Copy Markdown
Contributor

ty is faster and finally has a pre-commit which also doesn't require dependencies duplicated in the pre-commit config like pyright did.

This should be essentially no change to the code, the only thing is that all arguments after model_inputs become keyword-only (that's what the * does). keyword-only plays much nicer with partial, which ty flags but pyright did not.

There are also a couple of issues with how we do docstrings in the resampling atom and the use of TypeVar in the factorial code. But I've told ty to ignore these for now and can raise issues and subsequent PRs.

@AdrienCorenflos AdrienCorenflos left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No pb with it, I like the forced named argument

@SamDuffield SamDuffield merged commit e448483 into main Jun 18, 2026
2 checks passed
@SamDuffield SamDuffield deleted the ty branch June 18, 2026 16:10
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.

3 participants