MCPcopy
hub / github.com/django/django / signature

Function signature

django/utils/inspect.py:143–151  ·  view source on GitHub ↗

A wrapper around inspect.signature that leaves deferred annotations unevaluated on Python 3.14+, since they are not used in our case.

(obj)

Source from the content-addressed store, hash-verified

141
142
143def signature(obj):
144 """
145 A wrapper around inspect.signature that leaves deferred annotations
146 unevaluated on Python 3.14+, since they are not used in our case.
147 """
148 if PY314:
149 return inspect.signature(obj, annotation_format=annotationlib.Format.FORWARDREF)
150 else:
151 return inspect.signature(obj)

Callers 7

_get_compatible_backendsFunction · 0.90
decoratorFunction · 0.90
check_csrf_failure_viewFunction · 0.90
_resolve_lookupMethod · 0.90
_get_func_parametersFunction · 0.85

Calls 1

signatureMethod · 0.80

Tested by

no test coverage detected