Skip to content

Plans with positional only args cannot be run #780

Closed

Description

@tpoliaw

Given a plan such as

def demo(foo: int, /, bar: int) -> MsgGenerator:
    yield from ()

due to the method of wrapping all arguments into a dict and passing as demo(**args), it doesn't appear to be possible to run this plan.

This might not be an issue but if it's not intended to be supported, it would be good to document that somewhere and maybe warn when the plans are being read/registered.

Activity

  1. added
    bug
    documentation
    on Jan 13, 2025
  2. callumforrester commented on Jan 13, 2025

    @callumforrester
    Contributor

    Thanks, no strong opinion on whether to support or just document

  3. callumforrester commented on Mar 5, 2025

    @callumforrester
    Contributor

    Consensus appears to be that this should be not supported and documented for now

  4. added a commit that references this issue on Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdocumentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions