Check uses of various operators [operator]
Mypy checks that operands support a binary or unary operation, such as+
or ~
. Indexing operations are so common that they have theirown error code index
(see below).
Example:
- # Error: Unsupported operand types for + ("int" and "str") [operator]
- 1 + 'x'