summaryrefslogtreecommitdiff
path: root/doc/data/messages/b/bad-chained-comparison/bad.py
blob: eeca75f13ed45b31769d8482a6b5d7278844be65 (plain)
1
2
3
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.')