KEMBAR78
stubgen: Fix non default keyword-only argument positioning (#11082) by shoracek · Pull Request #12303 · python/mypy · GitHub
Skip to content

Conversation

@shoracek
Copy link
Contributor

@shoracek shoracek commented Mar 7, 2022

Description

Moves the asterisk logic so that it is processed right away even if the following argument does not have a default value.

Fixes #11082

Test Plan

I added the example from the issue as a unit test.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2022

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

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

Awesome, thank you!

@hauntsaninja hauntsaninja merged commit 8650f5c into python:master Mar 8, 2022
cdce8p pushed a commit to cdce8p/mypy that referenced this pull request Mar 10, 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

Successfully merging this pull request may close these issues.

Stubgen moves non default keyword-only argument in front of *

2 participants