Creates a _DictFetchMapper. Args: fetches: Dict of fetches.
(self, fetches)
| 402 | """Fetch mapper for dicts.""" |
| 403 | |
| 404 | def __init__(self, fetches): |
| 405 | """Creates a _DictFetchMapper. |
| 406 | |
| 407 | Args: |
| 408 | fetches: Dict of fetches. |
| 409 | """ |
| 410 | self._fetch_type = type(fetches) |
| 411 | self._keys = fetches.keys() |
| 412 | self._mappers = [ |
| 413 | _FetchMapper.for_fetch(fetch) for fetch in fetches.values() |
| 414 | ] |
| 415 | self._unique_fetches, self._value_indices = _uniquify_fetches(self._mappers) |
| 416 | |
| 417 | def unique_fetches(self): |
| 418 | return self._unique_fetches |
nothing calls this directly
no test coverage detected