MCPcopy
hub / github.com/django/django / inner

Function inner

tests/template_tests/syntax_tests/i18n/test_blocktranslate.py:37–43  ·  view source on GitHub ↗
(self, *args)

Source from the content-addressed store, hash-verified

35 def decorator(func):
36 @wraps(func)
37 def inner(self, *args):
38 signature = inspect.signature(func)
39 for tag_name, setup_func in tags.items():
40 if "tag_name" in signature.parameters:
41 setup_func(partial(func, tag_name=tag_name))(self)
42 else:
43 setup_func(func)(self)
44
45 return inner
46

Callers

nothing calls this directly

Calls 2

signatureMethod · 0.80
itemsMethod · 0.45

Tested by

no test coverage detected