mixins.pyi 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. from typing import List
  2. from abc import ABCMeta, abstractmethod
  3. __all__: List[str]
  4. # NOTE: `NDArrayOperatorsMixin` is not formally an abstract baseclass,
  5. # even though it's reliant on subclasses implementing `__array_ufunc__`
  6. class NDArrayOperatorsMixin(metaclass=ABCMeta):
  7. @abstractmethod
  8. def __array_ufunc__(self, ufunc, method, *inputs, **kwargs): ...
  9. def __lt__(self, other): ...
  10. def __le__(self, other): ...
  11. def __eq__(self, other): ...
  12. def __ne__(self, other): ...
  13. def __gt__(self, other): ...
  14. def __ge__(self, other): ...
  15. def __add__(self, other): ...
  16. def __radd__(self, other): ...
  17. def __iadd__(self, other): ...
  18. def __sub__(self, other): ...
  19. def __rsub__(self, other): ...
  20. def __isub__(self, other): ...
  21. def __mul__(self, other): ...
  22. def __rmul__(self, other): ...
  23. def __imul__(self, other): ...
  24. def __matmul__(self, other): ...
  25. def __rmatmul__(self, other): ...
  26. def __imatmul__(self, other): ...
  27. def __truediv__(self, other): ...
  28. def __rtruediv__(self, other): ...
  29. def __itruediv__(self, other): ...
  30. def __floordiv__(self, other): ...
  31. def __rfloordiv__(self, other): ...
  32. def __ifloordiv__(self, other): ...
  33. def __mod__(self, other): ...
  34. def __rmod__(self, other): ...
  35. def __imod__(self, other): ...
  36. def __divmod__(self, other): ...
  37. def __rdivmod__(self, other): ...
  38. def __pow__(self, other): ...
  39. def __rpow__(self, other): ...
  40. def __ipow__(self, other): ...
  41. def __lshift__(self, other): ...
  42. def __rlshift__(self, other): ...
  43. def __ilshift__(self, other): ...
  44. def __rshift__(self, other): ...
  45. def __rrshift__(self, other): ...
  46. def __irshift__(self, other): ...
  47. def __and__(self, other): ...
  48. def __rand__(self, other): ...
  49. def __iand__(self, other): ...
  50. def __xor__(self, other): ...
  51. def __rxor__(self, other): ...
  52. def __ixor__(self, other): ...
  53. def __or__(self, other): ...
  54. def __ror__(self, other): ...
  55. def __ior__(self, other): ...
  56. def __neg__(self): ...
  57. def __pos__(self): ...
  58. def __abs__(self): ...
  59. def __invert__(self): ...