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

Method __init__

dask/tests/test_task_spec.py:702–709  ·  view source on GitHub ↗
(self, nbytes: int)

Source from the content-addressed store, hash-verified

700 """
701
702 def __init__(self, nbytes: int) -> None:
703 if not isinstance(nbytes, int):
704 raise TypeError(f"Expected integer for nbytes but got {type(nbytes)}")
705 if nbytes < _size_obj:
706 raise ValueError(
707 f"Expected a value larger than {_size_obj} integer but got {nbytes}."
708 )
709 self._nbytes = nbytes - _size_obj
710
711 def __sizeof__(self) -> int:
712 return self._nbytes

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected