Skip to content

Commit 0c2fe73

Browse files
Fixes arange type annotation
1 parent 0d54922 commit 0c2fe73

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tripy/tripy/frontend/ops/tensor_initializers.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,9 @@ def arange(
349349
"T1": ["float32", "float16", "bfloat16", "int8", "int32", "bool"],
350350
},
351351
)
352-
def arange(stop: Union[numbers.Number, "tripy.Tensor"], dtype: "tripy.dtype" = datatype.float32) -> "tripy.Tensor":
352+
def arange(
353+
stop: Union[numbers.Number, "tripy.DimensionSize"], dtype: "tripy.dtype" = datatype.float32
354+
) -> "tripy.Tensor":
353355
r"""
354356
Returns a 1D tensor containing a sequence of numbers in the half-open interval
355357
:math:`[0, \text{stop})` incrementing by 1.

0 commit comments

Comments
 (0)