-
Notifications
You must be signed in to change notification settings - Fork 81
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
fix: render keyword and varargs #2074
Conversation
docs/prepare_docstrings.py
Outdated
if node.args.vararg is not None: | ||
rendered.insert(len(node.args.posonlyargs + node.args.args), f"*{node.args.vararg.arg}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should handle the args
in
def func(self, x, *args, y):
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does:
- http://preview.awkward-array.org.s3-website.us-east-1.amazonaws.com/agoose77/docs-fix-keyword-only-rendering/reference/generated/ak.to_parquet.html
- http://preview.awkward-array.org.s3-website.us-east-1.amazonaws.com/agoose77/docs-fix-keyword-only-rendering/reference/generated/ak.forms.RegularForm.html
I'm enabling auto-merge on this one because it seems very straightforward and done. Many of the tests haven't started, but I suspect that's because we're using the maximum number that we're allowed to use. If it's held up by the link-checker, then this branch will need to be updated when that goes into |
This won't run all the tests because we don't run build tests if the code isn't touched. If the non-queued tests all pass, I'll merge. |
Fixes #2073