def __lshift__(self, other):
        """ItemGroupDef can accept ItemRef and LabelRef"""

        if not isinstance(other, (ItemRef, MdsolLabelRef, Alias)):
            raise ValueError(
                "ItemGroupDef cannot accept a {0} as a child element".format(
                    other.__class__.__name__
                )
            )

        self.set_list_attribute(other, ItemRef, "item_refs")
        self.set_list_attribute(other, Alias, "aliases")
        self.set_list_attribute(other, MdsolLabelRef, "label_refs")
        return other
def __lshift__ ( self , other ) : if not isinstance ( other , ( ItemRef , MdsolLabelRef , Alias ) ) : raise ValueError ( "ItemGroupDef cannot accept a {0} as a child element" . format ( other . __class__ . __name__ ) ) self . set_list_attribute ( other , ItemRef , "item_refs" ) self . set_list_attribute ( other , Alias , "aliases" ) self . set_list_attribute ( other , MdsolLabelRef , "label_refs" ) return other
ItemGroupDef can accept ItemRef and LabelRef