Skip to content

Add target parameter to pipe_input #1161

Open
@elijahbenizzy

Description

@elijahbenizzy

Is your feature request related to a problem? Please describe.
Currently it assumes the first parameter. But that's a bit silly, we should use a target parameter. That would also allow pipe_input to work with other decorators cleanly.

Describe the solution you'd like

@pipe_input(
    step(...),
    step(...),
    target="b" # applies to parameter `b`
)
def foo(a: int, b: int) -> int:
    ...

Describe alternatives you've considered
Not doing this or just reordering parameters for the user.

Additional context
Tangentially related to this: #1160

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions