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

Method inner

django/core/checks/registry.py:52–64  ·  view source on GitHub ↗
(check)

Source from the content-addressed store, hash-verified

50 """
51
52 def inner(check):
53 if not func_accepts_kwargs(check):
54 raise TypeError(
55 "Check functions must accept keyword arguments (**kwargs)."
56 )
57 check.tags = tags
58 checks = (
59 self.deployment_checks
60 if kwargs.get("deploy")
61 else self.registered_checks
62 )
63 checks.add(check)
64 return check
65
66 if callable(check):
67 return inner(check)

Callers

nothing calls this directly

Calls 3

func_accepts_kwargsFunction · 0.90
getMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected