From 95fcc5f838efb46130a4e638ec79125e3da954b9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Oct 2023 11:04:49 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- boolean_algebra/commutative.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/boolean_algebra/commutative.py b/boolean_algebra/commutative.py index bfe13f083..fb9398691 100644 --- a/boolean_algebra/commutative.py +++ b/boolean_algebra/commutative.py @@ -21,6 +21,7 @@ def commutative_law_and(a: bool, b: bool) -> bool: """ return a and b + def commutative_law_or(a: bool, b: bool) -> bool: """ Implement the commutative law for OR: A OR B = B OR A. @@ -44,6 +45,8 @@ def commutative_law_or(a: bool, b: bool) -> bool: """ return a or b + if __name__ == "__main__": import doctest + doctest.testmod()