Skip to content

Conversation

digital-carver
Copy link
Collaborator

@digital-carver digital-carver commented Sep 26, 2025

Since the function construction in get_slots is only used to get slot names, always pretend the final positional arg is non-splat. This prevents the error from trying to construct fn(a..., kw), and otherwise has no impact since the slot names themselves remain the same.

Resolves #135

(This was largely based on false assumptions it turns out. I'll see if there's anything salvageable here, and if not then close this PR.)

Since the function construction in get_slots is only used to get slot
names, always pretend the final positional arg is non-splat. This prevents
the error from trying to construct `fn(a..., kw)`, and otherwise has no
impact since the slot names themselves remain the same.
@digital-carver digital-carver marked this pull request as draft September 26, 2025 15:49
@Krastanov
Copy link
Member

Thanks for looking into it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

resumable function with splatted args does not work in the presence of keyword args, e.g. @resumable function f(a...; kw=1)

2 participants