3 ms·
No. 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 i
by Too 5y ago
No. 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.