3 ms·
Would mypy have caught any of the issues highlighted in the article?
by yawaramin 5y ago
Would mypy have caught any of the issues highlighted in the article?
- Too 5y agoNo. Mypy only cares about types, it would only have been caught if something was expecting tuple of certain length, otherwise not. The problem in the article is more related to syntax, not types, with the problem that both forms are valid syntax with different but still very similar outcome. Pylint on the other hand can find it with implicit-str-concat check enabled.