Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
Update canals/component/component.py
Browse files Browse the repository at this point in the history
Co-authored-by: Massimiliano Pippi <mpippi@gmail.com>
  • Loading branch information
ZanSara and masci committed Nov 15, 2023
1 parent 98138b2 commit a85f7bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion canals/component/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def __call__(cls, *args, **kwargs):
instance.__canals_input__ = {}
run_signature = inspect.signature(getattr(cls, "run"))
for param in list(run_signature.parameters)[1:]: # First is 'self' and it doesn't matter.
if run_signature.parameters[param].kind == inspect.Parameter.POSITIONAL_OR_KEYWORD: # ignore kwargs
if run_signature.parameters[param].kind == inspect.Parameter.POSITIONAL_OR_KEYWORD: # ignore `**kwargs`
instance.__canals_input__[param] = InputSocket(
name=param,
type=run_signature.parameters[param].annotation,
Expand Down

0 comments on commit a85f7bc

Please sign in to comment.