def __lshift__(self, other):
        """Override << operator"""
        if not isinstance(other, (Signature, ItemGroupData, Annotation)):
            raise ValueError(
                "FormData object can only receive ItemGroupData, Signature or Annotation objects (not '{}')".format(
                    other))
        self.set_list_attribute(other, ItemGroupData, 'itemgroups')
        self.set_list_attribute(other, Annotation, 'annotations')
        self.set_single_attribute(other, Signature, 'signature')
        return other
def __lshift__ ( self , other ) : if not isinstance ( other , ( Signature , ItemGroupData , Annotation ) ) : raise ValueError ( "FormData object can only receive ItemGroupData, Signature or Annotation objects (not '{}')" . format ( other ) ) self . set_list_attribute ( other , ItemGroupData , 'itemgroups' ) self . set_list_attribute ( other , Annotation , 'annotations' ) self . set_single_attribute ( other , Signature , 'signature' ) return other
Override << operator