From 7690cb7e34202356ab7e17f787fe8f6abb3ce0da Mon Sep 17 00:00:00 2001 From: Matus Valo Date: Sun, 3 Apr 2022 10:48:27 +0200 Subject: [PATCH] Added singleton-comparison message example --- doc/data/messages/s/singleton-comparison/bad.py | 3 +++ doc/data/messages/s/singleton-comparison/good.py | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 doc/data/messages/s/singleton-comparison/bad.py create mode 100644 doc/data/messages/s/singleton-comparison/good.py diff --git a/doc/data/messages/s/singleton-comparison/bad.py b/doc/data/messages/s/singleton-comparison/bad.py new file mode 100644 index 00000000000..392d5807286 --- /dev/null +++ b/doc/data/messages/s/singleton-comparison/bad.py @@ -0,0 +1,3 @@ +foo = True +if foo == True: # [singleton-comparison] + pass diff --git a/doc/data/messages/s/singleton-comparison/good.py b/doc/data/messages/s/singleton-comparison/good.py new file mode 100644 index 00000000000..02347b47214 --- /dev/null +++ b/doc/data/messages/s/singleton-comparison/good.py @@ -0,0 +1,3 @@ +foo = True +if foo: + pass