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

fix: render keyword and varargs #2074

Merged
merged 5 commits into from
Jan 6, 2023

Conversation

agoose77
Copy link
Collaborator

@agoose77 agoose77 commented Jan 5, 2023

Fixes #2073

@agoose77 agoose77 temporarily deployed to docs-preview January 5, 2023 21:35 — with GitHub Actions Inactive
Comment on lines 150 to 151
if node.args.vararg is not None:
rendered.insert(len(node.args.posonlyargs + node.args.args), f"*{node.args.vararg.arg}")
Copy link
Collaborator Author

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):
    ...

Copy link
Member

@jpivarski jpivarski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jpivarski jpivarski enabled auto-merge (squash) January 5, 2023 22:38
@jpivarski
Copy link
Member

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 main.

@jpivarski jpivarski closed this Jan 5, 2023
auto-merge was automatically disabled January 5, 2023 22:39

Pull request was closed

@jpivarski jpivarski reopened this Jan 5, 2023
@jpivarski jpivarski enabled auto-merge (squash) January 5, 2023 22:49
@agoose77 agoose77 enabled auto-merge (squash) January 5, 2023 22:56
@agoose77 agoose77 temporarily deployed to docs-preview January 5, 2023 23:02 — with GitHub Actions Inactive
@agoose77 agoose77 temporarily deployed to docs-preview January 6, 2023 00:22 — with GitHub Actions Inactive
@agoose77
Copy link
Collaborator Author

agoose77 commented Jan 6, 2023

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.

@agoose77 agoose77 disabled auto-merge January 6, 2023 01:17
@agoose77 agoose77 merged commit 501c866 into main Jan 6, 2023
@agoose77 agoose77 deleted the agoose77/docs-fix-keyword-only-rendering branch January 6, 2023 01:17
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.

Documentation is missing keyword-only arguments
2 participants