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

Support kwonlyargs in arguments (Python3) #53

Merged
merged 10 commits into from
Jan 18, 2019
Merged

Support kwonlyargs in arguments (Python3) #53

merged 10 commits into from
Jan 18, 2019

Conversation

martinwicke
Copy link
Contributor

Currently, pasta fails to parse

def f(*a, b=0):
  pass

which is legal in Python3. This PR fixes that.

I did not regenerate the goldens (but I did add a test case).

@martinwicke
Copy link
Contributor Author

@soupytwist I think this is ready to go modulo the goldens. Btw. -- if the test would spit out the golden data even if the file isn't there, I could copy/paste that into the golden file and we can just use that as the golden generator.

pasta/base/annotate.py Outdated Show resolved Hide resolved
@martinwicke
Copy link
Contributor Author

Hooray!

@soupytwist soupytwist merged commit 751d89e into google:master Jan 18, 2019
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.

None yet

2 participants