Show More
@@ -1716,6 +1716,13 b' class Dict(Instance):' | |||||
1716 | validated[key] = v |
|
1716 | validated[key] = v | |
1717 | return self.klass(validated) |
|
1717 | return self.klass(validated) | |
1718 |
|
1718 | |||
|
1719 | def instance_init(self, obj): | |||
|
1720 | if isinstance(self._trait, TraitType): | |||
|
1721 | self._trait.this_class = self.this_class | |||
|
1722 | if hasattr(self._trait, '_resolve_classes'): | |||
|
1723 | self._trait._resolve_classes(obj) | |||
|
1724 | super(Dict, self).instance_init(obj) | |||
|
1725 | ||||
1719 |
|
1726 | |||
1720 | class EventfulDict(Instance): |
|
1727 | class EventfulDict(Instance): | |
1721 | """An instance of an EventfulDict.""" |
|
1728 | """An instance of an EventfulDict.""" |
General Comments 0
You need to be logged in to leave comments.
Login now