remove useless bool() call (#7189)

This commit is contained in:
Lukas Esc 2022-10-14 17:37:15 -05:00 committed by GitHub
parent 2058775005
commit 5dc0dc4d23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@ def nor_gate(input_1: int, input_2: int) -> int:
>>> nor_gate(0, -7) >>> nor_gate(0, -7)
0 0
""" """
return int(bool(input_1 == input_2 == 0)) return int(input_1 == input_2 == 0)
def main() -> None: def main() -> None: