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

Improve error message for an invalid callable type #4213

Merged
merged 1 commit into from Nov 15, 2017

Conversation

Projects
None yet
4 participants
@li-dan
Contributor

li-dan commented Nov 6, 2017

If the user gives the wrong number of arguments to Callable[], tell them
how many arguments are expected.

Daniel Li
Improve error message for an invalid callable type
If the user gives the wrong number of arguments to Callable[], tell them
how many arguments are expected.
@JukkaL

JukkaL approved these changes Nov 15, 2017

LGTM, thanks for the PR!

@JukkaL JukkaL merged commit 69a8556 into python:master Nov 15, 2017

2 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@li-dan li-dan deleted the li-dan:invalid-callable-error branch Nov 15, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment