component.set_input_types()
and component.set_input_type()
let's user set non-existing inputs
#8280
Milestone
component.set_input_types()
and component.set_input_type()
let's user set non-existing inputs
#8280
Describe the bug
If a user calls
component.set_input_types()
orcomponent.set_input_type()
in a Component's init method the inputs will be added even if the Component doesn't define arun
method that accepts**kwargs
.Expected behavior
Setting an input in a Component init that has a
run
that doesn't accept**kwargs
must fail.To Reproduce
This sould fail:
This should fail too:
This is correct instead:
The text was updated successfully, but these errors were encountered: