(self)
| 110 | self.successful |= any(r.is_successful() for r in new_results) |
| 111 | return new_results, new_facts |
| 112 | def next_optimistic(self): |
| 113 | if self.enumerated or self.disabled: |
| 114 | return [] |
| 115 | # TODO: cache this value |
| 116 | opt_value = self.external.opt_fn(*self.get_input_values()) |
| 117 | self.opt_results = [self._Result(self, opt_value, optimistic=True)] |
| 118 | return self.opt_results |
| 119 | def __repr__(self): |
| 120 | return '{}=?{}'.format(str_from_head(self.head), self.external.codomain.__name__) |
| 121 |
nothing calls this directly
no test coverage detected