File size: 268 Bytes
5eb110b
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
from typing import TypeVar, TypeVarTuple

DType = TypeVar('DType')
Shape = TypeVarTuple('Shape')

class Array(Generic[DType, *Shape]):

    def __abs__(self) -> Array[DType, *Shape]: ...

    def __add__(self, other: Array[DType, *Shape]) -> Array[DType, *Shape]: ...