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

Fix operator error messages for __div__ and __cmp__ on python 2 #7671

Merged
merged 1 commit into from Oct 9, 2019

Conversation

msullivan
Copy link
Collaborator

Currently the code for turning method call errors into operator error
messages doesn't detect div and cmp, so fix that.

One of my main motivations here is that this fixes type ignoring these
with an error code, since previously the real error would be
arg-type but the note would be operator.

I think that longer term it is probably worth having notes automatically take
the error code of the most recent error, or some such, but that is probably worth some discussion.

I'd like to get this into the release #7638

Currently the code for turning method call errors into operator error
messages doesn't detect __div__ and __cmp__, so fix that.

One of my main motivations here is that this fixes type ignoring these
with an error code, since previously the real error would be
`arg-type` but the note would be `operator`.
@msullivan msullivan merged commit 33e3558 into master Oct 9, 2019
@msullivan msullivan deleted the operator-fixes branch October 9, 2019 22:16
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