by melling · 5y ago · 0 comments
I’d like some of the “compile time”/ editor checks in Java, for example, but with more type inference. Maybe only important classes or functions.
x = 1
y = foo(bar(baz(x)))
If I declare baz() with types, I’d like my editor to warn me if x is the wrong type.Yes.
Mypy and Pyright are both quite good tools, and integrations for one or both are available for most editors.