numpy / numpy-stubs

Experimental typing stubs for NumPy
BSD 3-Clause "New" or "Revised" License
282 stars 32 forks source link

MAINT: Introduced a couple of fixes for the np.core.fromnumeric functions #74

Closed BvB93 closed 4 years ago

BvB93 commented 4 years ago

Follow-up on https://github.com/numpy/numpy-stubs/pull/71#issuecomment-619435429.

https://github.com/numpy/numpy-stubs/pull/67 Fixes & Updates

Further Notes

>>> import numpy as np

>>> np.partition(0, 0, axis=None)
array([0])

>>> np.partition(0, 0)
Traceback (most recent call last):
  ...
AxisError: axis -1 is out of bounds for array of dimension 0
person142 commented 4 years ago

Thanks @BvB93!