MCPcopy Index your code
hub / github.com/RustPython/RustPython / from_callable

Method from_callable

Lib/inspect.py:3033–3040  ·  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

3031
3032 @classmethod
3033 def from_callable(cls, obj, *,
3034 follow_wrapped=True, globals=None, locals=None, eval_str=False,
3035 annotation_format=Format.VALUE):
3036 """Constructs Signature for the given callable object."""
3037 return _signature_from_callable(obj, sigcls=cls,
3038 follow_wrapper_chains=follow_wrapped,
3039 globals=globals, locals=locals, eval_str=eval_str,
3040 annotation_format=annotation_format)
3041
3042 @property
3043 def parameters(self):

Calls 1

_signature_from_callableFunction · 0.85