parameters: (self)
return_statement: return (is_pos, is_neg)
docstring: Returns sign (is positive, is negative) of the expression.
docstring_summary: Returns sign (is positive, is negative) of the expression.
docstring_tokens: Returns sign ( is positive is negative ) of the expression .
function: def sign_from_args(self) -> Tuple[bool, bool]:
          """Returns sign (is positive, is negative) of the expression.
          """
          # Reduces the list of argument signs according to the following rules:
          #     POSITIVE, ANYTHING = POSITIVE
          #     ZERO, UNKNOWN = POSITIVE
          #     ZERO, ZERO = ZERO
          #     ZERO, NEGATIVE = ZERO
          #     UNKNOWN, NEGATIVE = UNKNOWN
          #     NEGATIVE, NEGATIVE = NEGATIVE
          is_pos = any(arg.is_nonneg() for arg in self.args)
          is_neg = all(arg.is_nonpos() for arg in self.args)
          return (is_pos, is_neg)
function_tokens: def sign_from_args ( self ) -> Tuple [ bool , bool ] : # Reduces the list of argument signs according to the following rules: #     POSITIVE, ANYTHING = POSITIVE #     ZERO, UNKNOWN = POSITIVE #     ZERO, ZERO = ZERO #     ZERO, NEGATIVE = ZERO #     UNKNOWN, NEGATIVE = UNKNOWN #     NEGATIVE, NEGATIVE = NEGATIVE is_pos = any ( arg . is_nonneg ( ) for arg in self . args ) is_neg = all ( arg . is_nonpos ( ) for arg in self . args ) return ( is_pos , is_neg )