class Array1(Generic[Axis1]): ... class Array2(Generic[Axis1, Axis2]): ...