Esempio n. 1
0
    def _format(level, entry, state):
      output = '{}Computing {} for {}'.format('  ' * level,
                                              type_or_constraint_repr(entry.node.product),
                                              entry.node.subject)
      if is_one_level_above_bottom(entry):
        output += '\n{}{}'.format('  ' * (level + 1), state)

      return output
Esempio n. 2
0
        def _format(level, entry, state):
            output = '{}Computing {} for {}'.format(
                '  ' * level, type_or_constraint_repr(entry.node.product),
                entry.node.subject)
            if is_one_level_above_bottom(entry):
                output += '\n{}{}'.format('  ' * (level + 1), state)

            return output
Esempio n. 3
0
 def __str__(self):
     return '({}, {!r}, {})'.format(
         type_or_constraint_repr(self.product_type), self.input_selectors,
         self.task_func.__name__)
Esempio n. 4
0
 def __str__(self):
   return '({}, {!r}, {})'.format(type_or_constraint_repr(self.product_type),
                                  self.input_selectors,
                                  self.func.__name__)
Esempio n. 5
0
 def __repr__(self):
   return '{}({}, {})'.format(type(self).__name__, type_or_constraint_repr(self.output_constraint), self.value)
Esempio n. 6
0
 def __str__(self):
   return '({}, {!r}, {})'.format(type_or_constraint_repr(self.output_constraint),
                                  self.input_selectors,
                                  self.func.__name__)