MCPcopy Index your code
hub / github.com/python/cpython / from_callable

Method from_callable

Lib/inspect.py:3040–3047  ·  view source on GitHub ↗

Constructs Signature for the given callable object.

(cls, obj, *,
                      follow_wrapped=True, globals=None, locals=None, eval_str=False,
                      annotation_format=Format.VALUE)

Source from the content-addressed store, hash-verified

3038
3039 @classmethod
3040 def from_callable(cls, obj, *,
3041 follow_wrapped=True, globals=None, locals=None, eval_str=False,
3042 annotation_format=Format.VALUE):
3043 """Constructs Signature for the given callable object."""
3044 return _signature_from_callable(obj, sigcls=cls,
3045 follow_wrapper_chains=follow_wrapped,
3046 globals=globals, locals=locals, eval_str=eval_str,
3047 annotation_format=annotation_format)
3048
3049 @property
3050 def parameters(self):

Calls 1

_signature_from_callableFunction · 0.85