MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / bind_partial

Method bind_partial

tools/python-3.11.9-amd64/Lib/inspect.py:3197–3202  ·  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

3195 return self._bind(args, kwargs)
3196
3197 def bind_partial(self, /, *args, **kwargs):
3198 """Get a BoundArguments object, that partially maps the
3199 passed `args` and `kwargs` to the function's signature.
3200 Raises `TypeError` if the passed arguments can not be bound.
3201 """
3202 return self._bind(args, kwargs, partial=True)
3203
3204 def __reduce__(self):
3205 return (type(self),

Callers 2

_signature_get_partialFunction · 0.80
__new__Method · 0.80

Calls 1

_bindMethod · 0.95

Tested by

no test coverage detected