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

Method bind_partial

Lib/inspect.py:3237–3242  ·  view source on GitHub ↗

Get a BoundArguments object, that partially maps the passed `args` and `kwargs` to the function's signature. Raises `TypeError` if the passed arguments can not be bound.

(self, /, *args, **kwargs)

Source from the content-addressed store, hash-verified

3235 return self._bind(args, kwargs)
3236
3237 def bind_partial(self, /, *args, **kwargs):
3238 """Get a BoundArguments object, that partially maps the
3239 passed `args` and `kwargs` to the function's signature.
3240 Raises `TypeError` if the passed arguments can not be bound.
3241 """
3242 return self._bind(args, kwargs, partial=True)
3243
3244 def __reduce__(self):
3245 return (type(self),

Calls 1

_bindMethod · 0.95