def __invert__(self):
        return self.__class__(operator.invert(x) for x in self)
a.__invert__() <==> ~a
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.3/pymel/util/arrays.py/Array.__invert__