def union ( cls , * sets ) : import utool as ut lists_ = ut . flatten ( [ list ( s ) for s in sets ] ) return cls ( lists_ )
how to combine sets in python
>>> from utool . util_set import * # NOQA
def union(cls, *sets):
        """
        >>> from utool.util_set import *  # NOQA
        """
        import utool as ut
        lists_ = ut.flatten([list(s) for s in sets])
        return cls(lists_)