diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2020-09-03 06:20:39 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2020-09-03 06:20:39 -0600 |
commit | d7dfb635457a14bd2a3eaccf2ed94423cedb33df (patch) | |
tree | 109e0eb247a942198ad9ee74b1536a4508d5533e /numpy/lib/function_base.py | |
parent | 1f8ce6341159ebb0731c2c262f4576609210d2c8 (diff) | |
download | numpy-d7dfb635457a14bd2a3eaccf2ed94423cedb33df.tar.gz |
BUG: Avoid using ``np.random`` in typing tests.
Using `np.random` can cause mysterious test failures in mypy `api.run`
with a report that 'error: Module has no attribute "rand"'. The fix
here is to use `np.empty` instead of `np.random.rand`. Why this works
is unknown at present.
Diffstat (limited to 'numpy/lib/function_base.py')
0 files changed, 0 insertions, 0 deletions