MCPcopy Create free account
hub / github.com/dagger/dagger / bind_arguments

Method bind_arguments

sdk/python/src/dagger/mod/_resolver.py:222–230  ·  view source on GitHub ↗

Bind the function with the given arguments.

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

220 )
221
222 def bind_arguments(self, *args, **kwargs):
223 """Bind the function with the given arguments."""
224 try:
225 bound = self.signature.bind(*args, **kwargs)
226 bound.apply_defaults()
227 except TypeError as e:
228 logger.exception("Unexpected type while binding input values to arguments")
229 raise InvalidInputError(str(e)) from e
230 return bound
231
232
233@dataclasses.dataclass(slots=True)

Callers 1

get_structured_resultMethod · 0.80

Calls 2

InvalidInputErrorClass · 0.90
bindMethod · 0.80

Tested by

no test coverage detected