(self, values)
| 384 | return self._unique_fetches |
| 385 | |
| 386 | def build_results(self, values): |
| 387 | # Create the list of results for each mapper. |
| 388 | results = [] |
| 389 | for m, vi in zip(self._mappers, self._value_indices): |
| 390 | results.append(m.build_results([values[j] for j in vi])) |
| 391 | # Return a value of the original type of the fetches. |
| 392 | if issubclass(self._fetch_type, list): |
| 393 | return results |
| 394 | elif self._fetch_type == tuple: |
| 395 | return tuple(results) |
| 396 | else: |
| 397 | # This is the code path for namedtuple. |
| 398 | return self._fetch_type(*results) |
| 399 | |
| 400 | |
| 401 | class _DictFetchMapper(_FetchMapper): |
nothing calls this directly
no test coverage detected