Show More
@@ -1631,6 +1631,14 b' class Tuple(Container):' | |||||
1631 | validated.append(v) |
|
1631 | validated.append(v) | |
1632 | return tuple(validated) |
|
1632 | return tuple(validated) | |
1633 |
|
1633 | |||
|
1634 | def instance_init(self, obj): | |||
|
1635 | for trait in self._traits: | |||
|
1636 | if isinstance(trait, TraitType): | |||
|
1637 | trait.this_class = self.this_class | |||
|
1638 | if hasattr(trait, '_resolve_classes'): | |||
|
1639 | trait._resolve_classes() | |||
|
1640 | super(Container, self).instance_init(obj) | |||
|
1641 | ||||
1634 |
|
1642 | |||
1635 | class Dict(Instance): |
|
1643 | class Dict(Instance): | |
1636 | """An instance of a Python dict.""" |
|
1644 | """An instance of a Python dict.""" |
General Comments 0
You need to be logged in to leave comments.
Login now