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

Keyword only arguments after bare * are not enforced because of rewrite. #405

Open
ianjosephwilson opened this issue Jun 15, 2024 · 0 comments

Comments

@ianjosephwilson
Copy link

I guess technically this is a bug but seems pretty insignificant especially since it has been 10 years since the last seemingly related commit.

This should produce a TypeError but seems to not to by accident because the bare * is rewritten out:

<%def name="kwonly(a, *, b=15)">
a=${a} b=${b}
</%def>

${kwonly(1, 2)}
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