diff options
author | SimonAltrogge <8720147+SimonAltrogge@users.noreply.github.com> | 2023-01-26 14:47:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-26 14:47:28 +0100 |
commit | 1c190405eacd0d7d3861042bb4c25bc24e30ff4d (patch) | |
tree | 2265187361073f8d4a02e58d5dd06c769ef01912 /numpy/array_api/tests/test_asarray.py | |
parent | 2289292db6a19f2bbfddd3dea3790ffa19955333 (diff) | |
download | numpy-1c190405eacd0d7d3861042bb4c25bc24e30ff4d.tar.gz |
TYP: Fix return type to float on _FloatLike_co arguments
Currently, `rng.exponential(scale=np.sum(np.arange(10.0)))` indicates
its return value as `np.ndarray[Any, dtype[float64]]` even though a
`float` is returned on `_FloatLike_co` values of the `scale` argument.
This commit fixes this problem such that `rng.exponential` indicates
the correct return type on `_FloatLike_co` inputs.
Diffstat (limited to 'numpy/array_api/tests/test_asarray.py')
0 files changed, 0 insertions, 0 deletions