@task
def count_more_than_2(inputs: set) -> int:
return len([s for s in inputs if s > 2])
# note these tasks don't actually return a useful value
set_of_tasks = {Task(), Task(), Task()}
# automatically applies Set
count_more_than_2(inputs=set_of_tasks)