def test_is_list(): a = pa.list_(pa.int32()) b = pa.large_list(pa.int32()) assert types.is_list(a) assert not types.is_large_list(a) assert types.is_large_list(b) assert not types.is_list(b) assert not types.is_list(pa.int32())
def test_is_list(): a = pa.list_(pa.int32()) b = pa.large_list(pa.int32()) c = pa.list_(pa.int32(), 3) assert types.is_list(a) assert not types.is_large_list(a) assert not types.is_fixed_size_list(a) assert types.is_large_list(b) assert not types.is_list(b) assert not types.is_fixed_size_list(b) assert types.is_fixed_size_list(c) assert not types.is_list(c) assert not types.is_large_list(c) assert not types.is_list(pa.int32())