MCPcopy Create free account
hub / github.com/celery/celery / if_not_seen

Method if_not_seen

celery/utils/graph.py:178–181  ·  view source on GitHub ↗
(fun, obj)

Source from the content-addressed store, hash-verified

176 print(bytes_to_str(s), file=fh)
177
178 def if_not_seen(fun, obj):
179 if draw.label(obj) not in seen:
180 P(fun(obj))
181 seen.add(draw.label(obj))
182
183 P(draw.head())
184 for obj, adjacent in self.items():

Callers

nothing calls this directly

Calls 3

funFunction · 0.85
labelMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected