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

Crash when a function with anonymous args is missing an argument #3312

Closed
sixolet opened this issue May 3, 2017 · 0 comments · Fixed by #3313
Closed

Crash when a function with anonymous args is missing an argument #3312

sixolet opened this issue May 3, 2017 · 0 comments · Fixed by #3313
Assignees

Comments

@sixolet
Copy link
Collaborator

sixolet commented May 3, 2017

In #2607 (comment) Guido points out that code like this crashes:

def foo(__b: int, x: int) -> int: pass
foo(x=2)

This is because I forgot to make sure error messages could handle anonymous arguments. I'll have a fix for this in soon, and scan the rest of the error messages for similar bugs.

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 a pull request may close this issue.

1 participant