def __setattr__(self, key, value): super(FromImportNode, self).__setattr__(key, value) if key == "value" and not isinstance(self.value, DotProxyList): setattr(self, "value", DotProxyList(self.value, on_attribute="value")) if key == "targets" and not isinstance(self.targets, CommaProxyList): setattr(self, "targets", CommaProxyList(self.targets, on_attribute="targets"))
def __setattr__(self, key, value): super(SetNode, self).__setattr__(key, value) if key == "value" and not isinstance(self.value, CommaProxyList): setattr(self, "value", CommaProxyList(self.value))
def __setattr__(self, key, value): super(LambdaNode, self).__setattr__(key, value) if key == "arguments" and not isinstance(self.arguments, CommaProxyList): setattr(self, "arguments", CommaProxyList(self.arguments, on_attribute="arguments"))
def __setattr__(self, key, value): super(GlobalNode, self).__setattr__(key, value) if key == "value" and not isinstance(self.value, CommaProxyList): setattr(self, "value", CommaProxyList(self.value, on_attribute="value"))
def __setattr__(self, key, value): super(ClassNode, self).__setattr__(key, value) if key == "inherit_from" and not isinstance(self.inherit_from, CommaProxyList): setattr(self, "inherit_from", CommaProxyList(self.inherit_from, on_attribute="inherit_from"))
def __setattr__(self, key, value): super(WithNode, self).__setattr__(key, value) if key == "contexts" and not isinstance(self.contexts, CommaProxyList): setattr(self, "contexts", CommaProxyList(self.contexts, on_attribute="contexts"))