You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BytesLike type should accept collections.abc.Buffer #2814
src/zarr/storage/_object.py:160: error: Argument 1 to "from_bytes" of "Buffer" has incompatible type "Bytes"; expected "bytes | bytearray | memoryview[int]" [arg-type]
The Bytes type in obstore is a CPU byte buffer that is backed by Rust and implements the Python buffer protocol. The type hint for Bytessubclasses from collections.abc.Buffer. BytesLike is defined here:
This change requires some other typing changes, because the numpy type hints (e.g. for from_buffer) do not correctly allow collections.abc.Buffer as an input type.
Activity