Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating anonymous functions with default parameters messes with dynamic argument generation. #54

Open
xxxAnn opened this issue Feb 12, 2022 · 0 comments

Comments

@xxxAnn
Copy link
Contributor

xxxAnn commented Feb 12, 2022

Functions like these:

# ... 
(ctx, t=3) -> reply(c, ctx, content="test")

mess with the generator since it tries to find t in the options, but no such options exist.

Idea: maybe try to perform a check against the passed options to ignore such methods, and instead of taking the first methods, take the one that matches the expected typing.

@xxxAnn xxxAnn changed the title Creating anonymous functions with default parameters messing with dynamic argument generation. Creating anonymous functions with default parameters messes with dynamic argument generation. Feb 12, 2022
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

No branches or pull requests

1 participant