← Back to context

Comment by martinky24

7 hours ago

I've been using ty on some previously untyped codebases at work. It does a good job of being fast and easy to use while catching many issues without being overly draconian.

My teammates who were writing untyped Python previously don't seem to mind it. It's a good addition to the ecosystem!

And it makes it infinitely easier for them to get with the times and start typing their code!

I am worried about the false negatives/positive rate however. Hope it improves.

  • My understand is Astral's focus for ty has been on making a good experience for common issues, whereas they plan for very high compliance but difficult or rare edge cases aren't are prioritized.

    Compliance suite numbers are biased towards edge cases and not the common path because that's where a lot of the tests need to be added.

    My advise is to see how each type checker runs against your own codebase and if the output/performance is something you are happy with.

    • > My understand is Astral's focus for ty has been on making a good experience for common issues, whereas they plan for very high compliance but difficult or rare edge cases aren't are prioritized.

      I would say that's true in terms of prioritization (there's a lot to do!), but not in terms of the final user experience that we are aiming for. We're not planning on punting on anything in the conformance suite, for instance.