def __str__(self): return "Component with shape %s" % shape_to_string(self.shape)
def __str__(self): return "%s with shape %s" % (self.__class__.__name__, shape_to_string(self.shape))