haystack/releasenotes/notes/component-set-input-type-constraints-0b1130c1b49d9648.yaml
Madeesh Kannan 672bcf7e03
fix: Add constraints to set_input_type(s) based on run method (#8358)
* fix: Prevent the usage of `set_input_type(s)` when the `run` method doesn't have kwargs,
raise if `set_input_type(s)` overrides `run` method parameters

* fix: update components and tests

* reno
2024-09-12 15:58:16 +02:00

6 lines
202 B
YAML

---
fixes:
- |
Add constraints to `component.set_input_type` and `component.set_input_types` to prevent undefined behaviour
when the `run` method does not contain a variadic keyword argument.