News for hackers. Stuff that matters.
Re:Static Duck Typing in Python with Protocols by ossopite on Tuesday November 23, 2021 @04:18AM (#29315987)
people talk a lot about MyPy but I must recommend Pyright as a better alternative. It's much more robust.

In my experience the main problem with MyPy is that when it's unsure about what's going on (especially due to imports it doesn't understand, sometimes because of misconfiguration) it just gives up on type checking with absolutely no warning. Pyright does not have this failure mode and handles Unknown types properly (with configurable strictness)

Re:Static Duck Typing in Python with Protocols by ramraj07 on Tuesday November 23, 2021 @06:23AM (#29316577)
Have you compared pytype ? Want to know if pyright is wort switching.