fiql_parser/expression.py
def to_python(self):
        """Deconstruct the ``Expression`` instance to a list or tuple
        (If ``Expression`` contains only one ``Constraint``).

        Returns:
            list or tuple: The deconstructed ``Expression``.
        """
        if len(self.elements) == 0:
            return None
        if len(self.elements) == 1:
            return self.elements[0].to_python()
        operator = self.operator or Operator(';')
        return [operator.to_python()] + \
            [elem.to_python() for elem in self.elements]
def to_python(self):
        """Deconstruct the ``Expression`` instance to a list or tuple
        (If ``Expression`` contains only one ``Constraint``).

        Returns:
            list or tuple: The deconstructed ``Expression``.
        """
        if len(self.elements) == 0:
            return None
        if len(self.elements) == 1:
            return self.elements[0].to_python()
        operator = self.operator or Operator(';')
        return [operator.to_python()] + \
            [elem.to_python() for elem in self.elements]
def to_python ( self ) : if len ( self . elements ) == 0 : return None if len ( self . elements ) == 1 : return self . elements [ 0 ] . to_python ( ) operator = self . operator or Operator ( ';' ) return [ operator . to_python ( ) ] + [ elem . to_python ( ) for elem in self . elements ]
Deconstruct the ``Expression`` instance to a list or tuple
        (If ``Expression`` contains only one ``Constraint``).

        Returns:
            list or tuple: The deconstructed ``Expression``.
Deconstruct the Expression instance to a list or tuple ( If Expression contains only one Constraint ) .