diff --git a/maths/sumset.py b/maths/sumset.py index 6bfb8bfd25eb..7cff4d42ad27 100644 --- a/maths/sumset.py +++ b/maths/sumset.py @@ -24,6 +24,8 @@ def sumset(set_a: set, set_b: set) -> set: Traceback (most recent call last): ... AssertionError: The input value of [set_b=3] is not a set + >>> sumset(set(), {1, 2, 3}) + set() """ assert isinstance(set_a, set), f"The input value of [set_a={set_a}] is not a set" assert isinstance(set_b, set), f"The input value of [set_b={set_b}] is not a set"