Skip to content

Commit

Permalink
adds type annots to xor3
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom O'Hara committed Oct 16, 2023
1 parent b3de842 commit 13f7b57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mezcla/debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ def xor(value1, value2):
return result


def xor3(value1, value2, value3):
def xor3(value1:bool, value2:bool, value3:bool) -> bool:
"""Whether one and only one of VALUE1, VALUE2, and VALUE3 are true"""
## result = (xor(value1, xor(value2m value3))
## and not (bool(value1) and bool(value2) and bool(value3)))
Expand Down

0 comments on commit 13f7b57

Please sign in to comment.