def required_types(self, required_types): if is_subset(required_types, self.__class__.VALID_TYPES): self._required_types = required_types else: raise AttributeError()
def colors(self, colors): if is_subset(colors, self.__class__.VALID_COLORS): self._colors = colors else: raise AttributeError()
def types(self, types): if is_subset(types, self.__class__.VALID_TYPES): self._types = types else: raise AttributeError()