Skip to content

Commit 96c429d

Browse files
Fix sumset docstring (#15038)
* Fix sumset docstring * Add empty set test for sumset --------- Co-authored-by: Christian Clauss <cclauss@me.com>
1 parent 5643f84 commit 96c429d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

maths/sumset.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ def sumset(set_a: set, set_b: set) -> set:
2424
Traceback (most recent call last):
2525
...
2626
AssertionError: The input value of [set_b=3] is not a set
27+
>>> sumset(set(), {1, 2, 3})
28+
set()
2729
"""
2830
assert isinstance(set_a, set), f"The input value of [set_a={set_a}] is not a set"
2931
assert isinstance(set_b, set), f"The input value of [set_b={set_b}] is not a set"

0 commit comments

Comments
 (0)