Hacker News new | ask | show | jobs
by insane_dreamer 407 days ago
in my experience pyright is unable to infer many inherited object types (compared to PyCharm's type inference)
1 comments

PyCharm definitely excels on more ‘dynamic’ code but the number of times I’ve pulled in code written by colleagues using PyCharm only to get a rainbow of type errors from Pyright is too damn high.

The PyCharm checker seems to miss really, really obvious things, e.g. allowing a call site to expect a string while the function returns bytes or none.

Maybe my colleagues just have it configured wrong but there’s several of them and the config isn’t shared.