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

This error message should show the type of the object #1

Open
Niriel opened this issue Jan 23, 2020 · 0 comments
Open

This error message should show the type of the object #1

Niriel opened this issue Jan 23, 2020 · 0 comments

Comments

@Niriel
Copy link
Owner

Niriel commented Jan 23, 2020

raise TypeError(f'left-over arguments at the end of evaluation: *{args}, **{kwargs}')

This error message hides the one that Python would raise, which reads "TypeError: 'int' object is not callable". It is nice to know we tried to call an int, it needs to be in the error message.

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

No branches or pull requests

1 participant