Zarr version
main
Description
There is a bug in these lines:
cdata is not of type bytes in the else clause:
| # compress |
| ifself.compressor: |
| cdata=awaitasyncio.to_thread(self.compressor.encode, chunk) |
| else: |
| cdata=chunk |
| |
| returnchunk_spec.prototype.buffer.from_bytes(cdata) |
cc @normanrz
Steps to reproduce
This is triggering failures in xarray's test suite. I haven't succeeded at making a minimal reproducer.
Additional output
No response
Zarr version
main
Description
There is a bug in these lines:
cdatais not of type bytes in theelseclause:zarr-python/src/zarr/codecs/_v2.py
Lines 80 to 86 in eb85ee7
cc @normanrz
Steps to reproduce
This is triggering failures in xarray's test suite. I haven't succeeded at making a minimal reproducer.
Additional output
No response