Skip to content

Commit 4cf6e11

Browse files
committed
Update docstring
1 parent 646454e commit 4cf6e11

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/zarr/abc/store.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,11 @@ async def get(
178178
key : str
179179
byte_range : ByteRangeRequest, optional
180180
181-
The semantics of this argument are:
181+
ByteRangeRequest may be one of the following. If not provided, all data associated with the key is retrieved.
182182
183-
- tuple (int, int): Request a specific range of bytes (start, end). The end offset is exclusive. If the given range is zero-length or starts after the end of the object, an error will be returned. Additionally, if the range ends after the end of the object, the entire remainder of the object will be returned. Otherwise, the exact requested range will be returned.
184-
- {"offset": int}: Request all bytes starting from a given byte offset. This is equivalent to bytes={int}- as an HTTP header.
185-
- {"suffix": int}: Request the last int bytes. Note that here, int is the size of the request, not the byte offset. This is equivalent to bytes=-{int} as an HTTP header.
183+
- ExplicitRange(int, int): Request a specific range of bytes in the form (start, end). The end is exclusive. If the given range is zero-length or starts after the end of the object, an error will be returned. Additionally, if the range ends after the end of the object, the entire remainder of the object will be returned. Otherwise, the exact requested range will be returned.
184+
- OffsetRange(int): Request all bytes starting from a given byte offset. This is equivalent to bytes={int}- as an HTTP header.
185+
- SuffixRange(int): Request the last int bytes. Note that here, int is the size of the request, not the byte offset. This is equivalent to bytes=-{int} as an HTTP header.
186186
187187
Returns
188188
-------

0 commit comments

Comments
 (0)