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

Function _preload_wrapper_depth

t/unit/app/test_preload_cli.py:282–290  ·  view source on GitHub ↗
(fun)

Source from the content-addressed store, hash-verified

280
281
282def _preload_wrapper_depth(fun):
283 depth = 0
284 seen = set()
285 while fun is not None and id(fun) not in seen:
286 seen.add(id(fun))
287 if getattr(fun, "_handles_preload_options", False):
288 depth += 1
289 fun = getattr(fun, "__wrapped__", None)
290 return depth
291
292
293def test_var_keyword_callback_keeps_preload_options_it_can_accept():

Calls 1

addMethod · 0.45

Tested by

no test coverage detected