NumPy

numpy.ma.MaskType.shape

attribute

MaskType.shape

Tuple of array dimensions.