File size: 162 Bytes
5eb110b
 
 
 
 
 
 
1
2
3
4
5
6
7
8
Shape = TypeVarTuple('Shape')

class Array(Generic[*Shape]): ...

Height = NewType('Height', int)
Width = NewType('Width', int)
x: Array[Height, Width] = Array()