TYP: improve np.sum
and np.mean
return types with given dtype
#27638
Labels
8000
np.sum
and np.mean
return types with given dtype
#27638
Uh oh!
There was an error while loading. Please reload this page.
Describe the issue:
In some cases,
sum
andmean
returnAny
according to the typing information. I propose the following improvements:Reproduce the code example:
Error message:
No response
Python and NumPy Versions:
2.1.2
3.13.0 (main, Oct 16 2024, 00:33:24) [MSC v.1929 64 bit (AMD64)]
Type-checker version and settings:
mypy
Additional typing packages.
No response
The text was updated successfully, but these errors were encountered: