(self, y)
return y in components or y in [c.__class__ for c in components]
x.__contains__(y) <==> y in x

        Return True if the Component y is registered.
x.__contains__(y) <==> y in x
x . __contains__ ( y ) < == > y in x
def __contains__(self, y):
        """x.__contains__(y) <==> y in x

        Return True if the Component y is registered.
        """

        components = self.components.copy()
        return y in components or y in [c.__class__ for c in components]
def __contains__ ( self , y ) : components = self . components . copy ( ) return y in components or y in [ c . __class__ for c in components ]