parameters: (sum)
return_statement: return True
docstring: Returns true if `sum` is a simple sum.
  
      Example of a simple sum:
  
          boolop = And | Or
  
      Example of not a simple sum:
  
          type
              = Integer(int kind)
              | Real(int kind)
docstring_summary: Returns true if `sum` is a simple sum.
docstring_tokens: Returns true if sum is a simple sum .
function: def is_simple_sum(sum):
      """
      Returns true if `sum` is a simple sum.
  
      Example of a simple sum:
  
          boolop = And | Or
  
      Example of not a simple sum:
  
          type
              = Integer(int kind)
              | Real(int kind)
  
      """
      assert isinstance(sum, asdl.Sum)
      for constructor in sum.types:
          if constructor.fields:
              return False
      return True
function_tokens: def is_simple_sum ( sum ) : assert isinstance ( sum , asdl . Sum ) for constructor in sum . types : if constructor . fields : return False return True