▲ | bormaj 4 days ago | ||||||||||||||||
If using python with type annotations, linters like ruff and mypy do a great job at identifying issues. It's no substitute for tests and nor will it give you the same guarantees that rust will at compile time. But I think it improves the base quality of the code. | |||||||||||||||||
▲ | mabster 4 days ago | parent [-] | ||||||||||||||||
The thing I find annoying with MyPt is trying to tell it I'm doing variable shadowing. E.g. X is a list of strings Translate X to a list of indices Translate X back to a list of strings. In that paragraph the input and output types are the same, but not complains about the second line. I always have to introduce a variable with a new name. | |||||||||||||||||
|