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