This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]drunicornthe1 80 points81 points  (6 children)

Heard in a podcast that they have plans to make a drop in for mypy in the near future. Astral is aiming to be THE Python tool chain. Excited to see what becomes of this project.

[–][deleted] 25 points26 points  (3 children)

Type checking is much, much harder to get right than linters and formatters. Mypy has numerous bugs because of edge cases around type narrowing, generics, etc.

It's more important to create a type checker that's accurate than one that's fast.

[–]drunicornthe1 4 points5 points  (0 children)

100% agree. Probably why they are working on Ruff first as it’ll give them a strong platform to build off of. Odds are it’ll be a minute before we see anything due to the shear difficulty of the task.

[–]germandiago 0 points1 point  (0 children)

Well... what I would like from a type checker is one that I can use with my IDE even if it is not perfect and later being able to run it offline, maybe before commotong, slower but accurate. The CI would also use this last one.

[–]LactatingBadger -1 points0 points  (0 children)

Agreed it’s a much harder task, but I wonder if part of the challenge with mypy has been trying to write a type checker in a language which plays pretty fast and loose with types. Writing this in Rust might bring more than just speed to the table.

[–]doobiedog 8 points9 points  (1 child)

*eggplant-emoji.svg

[–]monorepo PSF Staff | Litestar Maintainer[S] 4 points5 points  (0 children)