ufuncs.pyi 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import numpy as np
  2. import numpy.typing as npt
  3. AR_f8: npt.NDArray[np.float64]
  4. np.sin.nin + "foo" # E: Unsupported operand types
  5. np.sin(1, foo="bar") # E: No overload variant
  6. np.abs(None) # E: No overload variant
  7. np.add(1, 1, 1) # E: No overload variant
  8. np.add(1, 1, axis=0) # E: No overload variant
  9. np.matmul(AR_f8, AR_f8, where=True) # E: No overload variant
  10. np.frexp(AR_f8, out=None) # E: No overload variant
  11. np.frexp(AR_f8, out=AR_f8) # E: No overload variant
  12. np.absolute.outer() # E: "None" not callable
  13. np.frexp.outer() # E: "None" not callable
  14. np.divmod.outer() # E: "None" not callable
  15. np.matmul.outer() # E: "None" not callable
  16. np.absolute.reduceat() # E: "None" not callable
  17. np.frexp.reduceat() # E: "None" not callable
  18. np.divmod.reduceat() # E: "None" not callable
  19. np.matmul.reduceat() # E: "None" not callable
  20. np.absolute.reduce() # E: "None" not callable
  21. np.frexp.reduce() # E: "None" not callable
  22. np.divmod.reduce() # E: "None" not callable
  23. np.matmul.reduce() # E: "None" not callable
  24. np.absolute.accumulate() # E: "None" not callable
  25. np.frexp.accumulate() # E: "None" not callable
  26. np.divmod.accumulate() # E: "None" not callable
  27. np.matmul.accumulate() # E: "None" not callable
  28. np.frexp.at() # E: "None" not callable
  29. np.divmod.at() # E: "None" not callable
  30. np.matmul.at() # E: "None" not callable