diff --git a/doc/data/messages/i/invalid-unary-operand-type/bad.py b/doc/data/messages/i/invalid-unary-operand-type/bad.py new file mode 100644 index 0000000000..77391c3d9e --- /dev/null +++ b/doc/data/messages/i/invalid-unary-operand-type/bad.py @@ -0,0 +1,3 @@ +cherries = 10 +eaten_cherries = int +cherries = - eaten_cherries # [invalid-unary-operand-type] diff --git a/doc/data/messages/i/invalid-unary-operand-type/details.rst b/doc/data/messages/i/invalid-unary-operand-type/details.rst deleted file mode 100644 index ab82045295..0000000000 --- a/doc/data/messages/i/invalid-unary-operand-type/details.rst +++ /dev/null @@ -1 +0,0 @@ -You can help us make the doc better `by contributing `_ ! diff --git a/doc/data/messages/i/invalid-unary-operand-type/good.py b/doc/data/messages/i/invalid-unary-operand-type/good.py index c40beb573f..a9a47f5a28 100644 --- a/doc/data/messages/i/invalid-unary-operand-type/good.py +++ b/doc/data/messages/i/invalid-unary-operand-type/good.py @@ -1 +1,3 @@ -# This is a placeholder for correct code for this message. +cherries = 10 +eaten_cherries = 2 +cherries -= eaten_cherries