(
self,
mapping: dict,
numblocks: tuple[int, ...] | None = None,
produces_tasks: bool = False,
produces_keys: bool = False,
)
| 135 | """ |
| 136 | |
| 137 | def __init__( |
| 138 | self, |
| 139 | mapping: dict, |
| 140 | numblocks: tuple[int, ...] | None = None, |
| 141 | produces_tasks: bool = False, |
| 142 | produces_keys: bool = False, |
| 143 | ): |
| 144 | self.mapping = mapping |
| 145 | self.produces_tasks = produces_tasks |
| 146 | |
| 147 | # By default, assume 1D shape |
| 148 | self.numblocks = numblocks or (len(mapping),) |
| 149 | |
| 150 | # Whether `mapping` values are real task keys |
| 151 | # (e.g. Delayed objects) |
| 152 | self._produces_keys = produces_keys |
| 153 | |
| 154 | @property |
| 155 | def produces_keys(self) -> bool: |
nothing calls this directly
no outgoing calls
no test coverage detected