You can do `set(func)` rather than `set().union(set(func))`, and it should do the same thing