Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Ask HN: Is there a Ruff for Python static type checking?
9 points
by
dirtbag__dad
on April 18, 2023
|
hide
|
past
|
favorite
|
5 comments
fannheyward
on April 19, 2023
|
next
[–]
https://github.com/mtshiba/pylyzer
dirtbag__dad
on April 19, 2023
|
parent
|
next
[–]
Here we go! Thank you.
akshivb
on April 19, 2023
|
prev
|
next
[–]
There are many tools that accomplish static analysis in python. mypy is the original, but pyre(meta), pytype(google), and pyright(microsoft) are alternatives which make different trade offs.
MapleWalnut
on April 19, 2023
|
prev
|
next
[–]
Mypy is the most correct and flexible type checker I’ve found. Pyright is great for auto complete in VSCode though, so I use both.
The Google and Facebook options aren’t well supported.
fermigier
on April 19, 2023
|
prev
[–]
I suspect/predict Ruff will get into the type-checking business someday :)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: