@@ -159,7 +159,7 @@ def __abs__(self: array, /) -> array:
159
159
"""
160
160
...
161
161
162
- def __add__ (self : array , other : int | float | array , / ) -> array :
162
+ def __add__ (self : array , other : int | float | Array , / ) -> array :
163
163
"""
164
164
Calculates the sum for each element of an array instance with the respective element of the array ``other``.
165
165
@@ -513,7 +513,7 @@ def __dlpack_device__(self, /) -> tuple[Enum, int]:
513
513
# Note that __eq__ returns an array while `object.__eq__` returns a bool.
514
514
# Hence Mypy will complain that this violates the Liskov substitution
515
515
# principle - ignore that.
516
- def __eq__ (self : array , other : int | float | bool | array , / ) -> array : # type: ignore[override]
516
+ def __eq__ (self : array , other : int | float | bool | Array , / ) -> array : # type: ignore[override]
517
517
r"""
518
518
Computes the truth value of ``self_i == other_i`` for each element of an array instance with the respective element of the array ``other``.
519
519
@@ -577,7 +577,7 @@ def __float__(self, /) -> float:
577
577
"""
578
578
...
579
579
580
- def __floordiv__ (self : array , other : int | float | array , / ) -> array :
580
+ def __floordiv__ (self : array , other : int | float | Array , / ) -> array :
581
581
"""
582
582
Evaluates ``self_i // other_i`` for each element of an array instance with the respective element of the array ``other``.
583
583
@@ -602,7 +602,7 @@ def __floordiv__(self: array, other: int | float | array, /) -> array:
602
602
"""
603
603
...
604
604
605
- def __ge__ (self : array , other : int | float | array , / ) -> array :
605
+ def __ge__ (self : array , other : int | float | Array , / ) -> array :
606
606
"""
607
607
Computes the truth value of ``self_i >= other_i`` for each element of an array instance with the respective element of the array ``other``.
608
608
@@ -658,7 +658,7 @@ def __getitem__(
658
658
"""
659
659
...
660
660
661
- def __gt__ (self : array , other : int | float | array , / ) -> array :
661
+ def __gt__ (self : array , other : int | float | Array , / ) -> array :
662
662
"""
663
663
Computes the truth value of ``self_i > other_i`` for each element of an array instance with the respective element of the array ``other``.
664
664
@@ -786,7 +786,7 @@ def __invert__(self: array, /) -> array:
786
786
"""
787
787
...
788
788
789
- def __le__ (self : array , other : int | float | array , / ) -> array :
789
+ def __le__ (self : array , other : int | float | Array , / ) -> array :
790
790
"""
791
791
Computes the truth value of ``self_i <= other_i`` for each element of an array instance with the respective element of the array ``other``.
792
792
@@ -836,7 +836,7 @@ def __lshift__(self: array, other: int | array, /) -> array:
836
836
"""
837
837
...
838
838
839
- def __lt__ (self : array , other : int | float | array , / ) -> array :
839
+ def __lt__ (self : array , other : int | float | Array , / ) -> array :
840
840
"""
841
841
Computes the truth value of ``self_i < other_i`` for each element of an array instance with the respective element of the array ``other``.
842
842
@@ -913,7 +913,7 @@ def __matmul__(self: array, other: array, /) -> array:
913
913
"""
914
914
...
915
915
916
- def __mod__ (self : array , other : int | float | array , / ) -> array :
916
+ def __mod__ (self : array , other : int | float | Array , / ) -> array :
917
917
"""
918
918
Evaluates ``self_i % other_i`` for each element of an array instance with the respective element of the array ``other``.
919
919
@@ -938,7 +938,7 @@ def __mod__(self: array, other: int | float | array, /) -> array:
938
938
"""
939
939
...
940
940
941
- def __mul__ (self : array , other : int | float | array , / ) -> array :
941
+ def __mul__ (self : array , other : int | float | Array , / ) -> array :
942
942
r"""
943
943
Calculates the product for each element of an array instance with the respective element of the array ``other``.
944
944
@@ -969,7 +969,7 @@ def __mul__(self: array, other: int | float | array, /) -> array:
969
969
...
970
970
971
971
# See note above __eq__ method for explanation of the `type: ignore`
972
- def __ne__ (self : array , other : int | float | bool | array , / ) -> array : # type: ignore[override]
972
+ def __ne__ (self : array , other : int | float | bool | Array , / ) -> array : # type: ignore[override]
973
973
"""
974
974
Computes the truth value of ``self_i != other_i`` for each element of an array instance with the respective element of the array ``other``.
975
975
@@ -1078,7 +1078,7 @@ def __pos__(self: array, /) -> array:
1078
1078
"""
1079
1079
...
1080
1080
1081
- def __pow__ (self : array , other : int | float | array , / ) -> array :
1081
+ def __pow__ (self : array , other : int | float | Array , / ) -> array :
1082
1082
r"""
1083
1083
Calculates an implementation-dependent approximation of exponentiation by raising each element (the base) of an array instance to the power of ``other_i`` (the exponent), where ``other_i`` is the corresponding element of the array ``other``.
1084
1084
@@ -1163,7 +1163,7 @@ def __setitem__(
1163
1163
"""
1164
1164
...
1165
1165
1166
- def __sub__ (self : array , other : int | float | array , / ) -> array :
1166
+ def __sub__ (self : array , other : int | float | Array , / ) -> array :
1167
1167
"""
1168
1168
Calculates the difference for each element of an array instance with the respective element of the array ``other``.
1169
1169
@@ -1192,7 +1192,7 @@ def __sub__(self: array, other: int | float | array, /) -> array:
1192
1192
"""
1193
1193
...
1194
1194
1195
- def __truediv__ (self : array , other : int | float | array , / ) -> array :
1195
+ def __truediv__ (self : array , other : int | float | Array , / ) -> array :
1196
1196
r"""
1197
1197
Evaluates ``self_i / other_i`` for each element of an array instance with the respective element of the array ``other``.
1198
1198
0 commit comments