blob: 09e3ab627c4b4d512a822d8558f2e54ce9c2e797 (
plain)
1
2
3
4
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."
)
|