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

Class FakeShape

dask/tests/test_utils.py:992–994  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

990
991def test_is_empty_object_with_shape_only():
992 class FakeShape:
993 def __init__(self, shape):
994 self.shape = shape
995
996 assert is_empty(FakeShape((0, 5))) is True
997 assert is_empty(FakeShape((3, 5))) is False

Callers 1

Calls

no outgoing calls

Tested by 1