Fix the comment to match the code.

Looking at the impl, it only accepts sets.
This commit is contained in:
Thomas Van Lenten 2020-03-19 12:31:22 -04:00 committed by GitHub
parent 6970e21d29
commit ee4a21c5c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -182,10 +182,10 @@ def _union(*args):
"""Returns the union of several sets. """Returns the union of several sets.
Args: Args:
*args: An arbitrary number of sets or lists. *args: An arbitrary number of sets.
Returns: Returns:
The set union of all sets or lists in `*args`. The set union of all sets in `*args`.
""" """
return struct(_values = dicts.add(*[s._values for s in args])) return struct(_values = dicts.add(*[s._values for s in args]))