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