summaryrefslogtreecommitdiff
path: root/doc/data/messages/b/bad-chained-comparison
diff options
context:
space:
mode:
Diffstat (limited to 'doc/data/messages/b/bad-chained-comparison')
-rw-r--r--doc/data/messages/b/bad-chained-comparison/bad.py4
-rw-r--r--doc/data/messages/b/bad-chained-comparison/good.py4
2 files changed, 6 insertions, 2 deletions
diff --git a/doc/data/messages/b/bad-chained-comparison/bad.py b/doc/data/messages/b/bad-chained-comparison/bad.py
index eeca75f13..09e3ab627 100644
--- a/doc/data/messages/b/bad-chained-comparison/bad.py
+++ b/doc/data/messages/b/bad-chained-comparison/bad.py
@@ -1,3 +1,5 @@
def xor_check(*, left=None, right=None):
if left is None != right is None: # [bad-chained-comparison]
- raise ValueError('Either both left= and right= need to be provided or none should.')
+ raise ValueError(
+ "Either both left= and right= need to be provided or none should."
+ )
diff --git a/doc/data/messages/b/bad-chained-comparison/good.py b/doc/data/messages/b/bad-chained-comparison/good.py
index 115f4a9db..79bb64151 100644
--- a/doc/data/messages/b/bad-chained-comparison/good.py
+++ b/doc/data/messages/b/bad-chained-comparison/good.py
@@ -1,3 +1,5 @@
def xor_check(*, left=None, right=None):
if (left is None) != (right is None):
- raise ValueError('Either both left= and right= need to be provided or none should.')
+ raise ValueError(
+ "Either both left= and right= need to be provided or none should."
+ )