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 unwanted * between varargs and keyword only args #2432

Merged
merged 1 commit into from Oct 18, 2016

Conversation

agronholm
Copy link
Contributor

The * parameter must only be present when a holder for positional variable arguments is not present.

The * parameter must only be present when a holder for positional variable arguments is not present.
@@ -35,14 +35,18 @@ def f5(x: int, *, y: str, z: str) -> None:
pass


def f6(x: int = None, y: dict = {}) -> None:
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a particular reason you're inserting a function here, instead of appending it to the list?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Keeping them properly grouped. I can append instead of inserting if that makes you happy.

@lehmannro
Copy link
Contributor

LGTM.

@agronholm
Copy link
Contributor Author

@lehmannro you're listed as a co-maintainer; do you have push access? Would you mind merging this then?

@tk0miya tk0miya added this to the 1.5 milestone Sep 28, 2016
@shimizukawa shimizukawa self-assigned this Oct 15, 2016
@shimizukawa
Copy link
Member

LGTM too.

@shimizukawa shimizukawa merged commit 340c6fb into sphinx-doc:master Oct 18, 2016
@shimizukawa
Copy link
Member

Thanks!

shimizukawa added a commit that referenced this pull request Oct 18, 2016
shimizukawa added a commit that referenced this pull request Oct 18, 2016
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants