diff --git a/doc/data/messages/u/use-implicit-booleaness-not-comparison/bad.py b/doc/data/messages/u/use-implicit-booleaness-not-comparison/bad.py new file mode 100644 index 0000000000..78411ec2aa --- /dev/null +++ b/doc/data/messages/u/use-implicit-booleaness-not-comparison/bad.py @@ -0,0 +1,4 @@ +z = [] + +if z != []: # [use-implicit-booleaness-not-comparison] + print("z is not an empty sequence") diff --git a/doc/data/messages/u/use-implicit-booleaness-not-comparison/details.rst b/doc/data/messages/u/use-implicit-booleaness-not-comparison/details.rst deleted file mode 100644 index ab82045295..0000000000 --- a/doc/data/messages/u/use-implicit-booleaness-not-comparison/details.rst +++ /dev/null @@ -1 +0,0 @@ -You can help us make the doc better `by contributing `_ ! diff --git a/doc/data/messages/u/use-implicit-booleaness-not-comparison/good.py b/doc/data/messages/u/use-implicit-booleaness-not-comparison/good.py index c40beb573f..6801d91eb2 100644 --- a/doc/data/messages/u/use-implicit-booleaness-not-comparison/good.py +++ b/doc/data/messages/u/use-implicit-booleaness-not-comparison/good.py @@ -1 +1,4 @@ -# This is a placeholder for correct code for this message. +z = [] + +if z: + print("z is not an empty sequence")