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

Method bind_partial

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

3242 return self._bind(args, kwargs)
3243
3244 def bind_partial(self, /, *args, **kwargs):
3245 """Get a BoundArguments object, that partially maps the
3246 passed `args` and `kwargs` to the function's signature.
3247 Raises `TypeError` if the passed arguments can not be bound.
3248 """
3249 return self._bind(args, kwargs, partial=True)
3250
3251 def __reduce__(self):
3252 return (type(self),

Calls 1

_bindMethod · 0.95