Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, *closures):
self.closures = set([])
for clos_t in closures:
if isinstance(clos_t, ClosureSet):
self.closures.update(clos_t.closures)
else:
assert isinstance(clos_t, ClosureT)
self.closures.add(clos_t)