When using fsspec as store, the Array throws a ValueError when selecting an empty slice(), but only after resizing:
import fsspec
import zarr
fs = fsspec.filesystem('memory')
store = zarr.storage.FSStore('/test', fs=fs)
arr = zarr.create((0,), store=store)
# These print "[]" as expected
print(arr[0:0])
print(arr[1:1])
arr.resize((1,))
# These raise ValueError
print(arr[0:0])
print(arr[1:1])
When using fsspec as store, the Array throws a ValueError when selecting an empty slice(), but only after resizing: