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

Method __getitem__

dask/layers.py:93–97  ·  view source on GitHub ↗
(self, idx: tuple)

Source from the content-addressed store, hash-verified

91
92class ArrayBlockIdDep(ArrayBlockwiseDep):
93 def __getitem__(self, idx: tuple):
94 if not isinstance(idx, tuple):
95 # This happens if something else except graph generation calls us
96 raise NotImplementedError("ArrayBlockIdDep requires a tuple index")
97 return idx
98
99
100class ArrayValuesDep(ArrayBlockwiseDep):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected