Bind the function with the given arguments.
(self, *args, **kwargs)
| 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) |
no test coverage detected