Skip to content

Commit

Permalink
Add documentation examples for invalid-unary-operand-type (#7031)
Browse files Browse the repository at this point in the history
Co-authored-by: Vladyslav Krylasov <vladyslav.krylasov@gmail.com>
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
  • Loading branch information
3 people authored Jun 24, 2022
1 parent 4311d52 commit 3fadb46
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions doc/data/messages/i/invalid-unary-operand-type/bad.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
cherries = 10
eaten_cherries = int
cherries = - eaten_cherries # [invalid-unary-operand-type]
1 change: 0 additions & 1 deletion doc/data/messages/i/invalid-unary-operand-type/details.rst

This file was deleted.

4 changes: 3 additions & 1 deletion doc/data/messages/i/invalid-unary-operand-type/good.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# This is a placeholder for correct code for this message.
cherries = 10
eaten_cherries = 2
cherries -= eaten_cherries

0 comments on commit 3fadb46

Please sign in to comment.