Skip to content

Commit 8eaf862

Browse files
committed
result_type
1 parent 84e28e7 commit 8eaf862

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

array_api_compat/torch/_aliases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def _fix_promotion(x1, x2, only_scalar=True):
116116
_py_scalars = (bool, int, float, complex)
117117

118118

119-
def result_type(*arrays_and_dtypes: Union[Array, DType, bool, int, float, complex]) -> DType:
119+
def result_type(*arrays_and_dtypes: Array | DType | bool | complex) -> DType:
120120
if len(arrays_and_dtypes) == 0:
121121
raise TypeError("At least one array or dtype must be provided")
122122
if len(arrays_and_dtypes) == 1:

0 commit comments

Comments
 (0)