Skip to content

Suggested improvement for wording of an error #3341

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

Closed
KitB opened this issue May 9, 2017 · 2 comments
Closed

Suggested improvement for wording of an error #3341

KitB opened this issue May 9, 2017 · 2 comments

Comments

@KitB
Copy link

KitB commented May 9, 2017

I recently had trouble understanding an error output along the lines of:

Type argument 1 of "<function name>" has incompatible value "<a type that doesn't fit the TypeVar>"

Would it be possible to output something more along the lines of:

TypeVar "T" cannot be a "<wrong type>" (from first argument to "<function name>")
@ilinum
Copy link
Collaborator

ilinum commented Jul 7, 2017

I think that's a great suggestion!
TypeVar "<typevar name>" cannot be a "<wrong type>" (from argument 1 to "<function name>")

@KitB are you interested in taking a stab at it yourself? If not, I can work on it.

@KitB
Copy link
Author

KitB commented Jul 7, 2017

I don't really have the time, go ahead.

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

2 participants