MCPcopy Create free account
hub / github.com/dask/dask / __getitem__

Method __getitem__

dask/blockwise.py:50–54  ·  view source on GitHub ↗

Return Blockwise-function arguments for a specific index

(self, idx: tuple[int, ...])

Source from the content-addressed store, hash-verified

48 produces_tasks: bool
49
50 def __getitem__(self, idx: tuple[int, ...]) -> Any:
51 """Return Blockwise-function arguments for a specific index"""
52 raise NotImplementedError(
53 "Must define `__getitem__` for `BlockwiseDep` subclass."
54 )
55
56 def get(self, idx: tuple[int, ...], default) -> Any:
57 """BlockwiseDep ``__getitem__`` Wrapper"""

Callers 1

getMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected