-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Why is the product of Real
numbers Any
?
#11340
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
Looking at the |
Note that the I don't see a reason why we can't annotate the return types of method like |
@srittau, I don't remember the details of that PR. I think I was on a mission at that time to get all of the stdlib stubs to be "complete" with regard to return type annotations. |
I've removed the |
Consider the following code:
reveals
Any
during typechecking. Why is this the case? Even ifb
is typed asint
orfloat
, the result is stillAny
From a mathematical perspective, this does not seem to make much sense.
I'm using latest mypy on python 3.11
The text was updated successfully, but these errors were encountered: