r/Python • • Jun 22 '26

Discussion Astral's ty readiness for CI

If you were setting up your project/department/company CI pipelines today, would you feel comfortable using ty as the type checker, or would you stick with basedpyright/other alternative?

I am currently setting up my own CI and am leaning towards basedpyright, as I've been using for some time, but ty seems to be developing nicely, although (as far as I know) it is not fully on-par with pyright.

21 Upvotes

41 comments sorted by

View all comments

Show parent comment

4

u/covmatty1 Jun 23 '26

If its external interface can change in any release, it cannot be classed as anything higher than beta.

Whatever it's called, it's still not appropriate to use something that's not stable in professional production code.

1

u/carljm Jun 24 '26

I'm curious what you'd consider the "external interface" of a type checker. Every type checker (including ones like mypy/pyright that have been around for years) make behavior changes in every release that can add or remove type diagnostics on some code.

I think it's reasonable to say that a stable type checker should not change configuration options or CLI flags in a backwards-incompatible way without warning.

1

u/covmatty1 Jun 24 '26

Yeah exactly - the way it's executed and configured. If ty is still too unstable to promise that, that's why it's not suitable for use outside hobby projects.