Skip to content

Commit b49513b

Browse files
julthepsprytnykPierre-Sassoulas
authored
Add documentation examples for unneeded-not (#7074)
Co-authored-by: Vladyslav Krylasov <vladyslav.krylasov@gmail.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
1 parent 6fc6c84 commit b49513b

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
if not not input(): # [unneeded-not]
2+
pass

doc/data/messages/u/unneeded-not/details.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
# This is a placeholder for correct code for this message.
1+
if input():
2+
pass

0 commit comments

Comments
 (0)