-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
from __future__ import division is returning int instead of float in python 2 #2048
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
Comments
Thanks for reporting this! In fact, on some debugging, there appears to be a TODO in the code for just this issue: Currently we read future-options in the parser (storing them on the Probably we should record the future-options on the |
Raising priority to normal, as requested here. Something else to keep in mind is that it seems like mypy just doesn't handle division in Python 2 very gracefully in general. In particular, whoever decides to tackle this issue also ought to carefully audit any code that calls Many (but not all) of those data structures do not include The net effect is that our codebase sometimes handles Another example of an inconsistency: the error message you get when doing |
What is Python 2? |
I noticed this when mypy --py2 worked but mypy for python 3 failed.
The text was updated successfully, but these errors were encountered: