Exemple #1
0
 def required_types(self, required_types):
     if is_subset(required_types, self.__class__.VALID_TYPES):
         self._required_types = required_types
     else:
         raise AttributeError()
Exemple #2
0
 def colors(self, colors):
     if is_subset(colors, self.__class__.VALID_COLORS):
         self._colors = colors
     else:
         raise AttributeError()
Exemple #3
0
 def types(self, types):
     if is_subset(types, self.__class__.VALID_TYPES):
         self._types = types
     else:
         raise AttributeError()
Exemple #4
0
	def required_types(self, required_types):
		if is_subset(required_types, self.__class__.VALID_TYPES):
			self._required_types = required_types
		else:
			raise AttributeError()
Exemple #5
0
	def colors(self, colors):
		if is_subset(colors, self.__class__.VALID_COLORS):
			 self._colors = colors
		else:
			raise AttributeError()
Exemple #6
0
	def types(self, types):
		if is_subset(types, self.__class__.VALID_TYPES):
			self._types = types
		else:
			raise AttributeError()