.. _invalid-unary-operand-type: invalid-unary-operand-type / E1130 ================================== **Message emitted:** ``%s`` **Description:** *Emitted when a unary operand is used on an object which does not support this type of operation.* **Problematic code:** .. literalinclude:: /data/messages/i/invalid-unary-operand-type/bad.py :language: python **Correct code:** .. literalinclude:: /data/messages/i/invalid-unary-operand-type/good.py :language: python Created by the `typecheck `__ checker.