from Hacker News

Ask HN: Is there a Ruff for Python static type checking?

by dirtbag__dad on 4/18/23, 11:59 PM with 5 comments

  • by fannheyward on 4/19/23, 2:13 AM

  • by akshivb on 4/19/23, 1:03 AM

    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.
  • by MapleWalnut on 4/19/23, 2:13 AM

    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.

  • by fermigier on 4/19/23, 5:22 AM

    I suspect/predict Ruff will get into the type-checking business someday :)