##// END OF EJS Templates
setting metadata for the union type
Sylvain Corlay -
Show More
@@ -1069,7 +1069,9 b' class Union(TraitType):'
1069 1069 def validate(self, obj, value):
1070 1070 for trait_type in self.trait_types:
1071 1071 try:
1072 return trait_type._validate(obj, value)
1072 v = trait_type._validate(obj, value)
1073 self._metadata = trait_type._metadata
1074 return v
1073 1075 except TraitError:
1074 1076 continue
1075 1077 self.error(obj, value)
General Comments 0
You need to be logged in to leave comments. Login now