Skip to content

Commit 9f4e7a1

Browse files
authored
fix: Fix docstring of GetOptions.range (#756)
1 parent 278c43a commit 9f4e7a1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

obstore/python/obstore/_get.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ class GetOptions(TypedDict, total=False):
106106
Request transfer of only the specified range of bytes
107107
otherwise returning [`NotModifiedError`][obstore.exceptions.NotModifiedError].
108108
The semantics of this tuple are:
109+
109110
- `(int, int)`: Request a specific range of bytes `(start, end)`.
110111
If the given range is zero-length or starts after the end of the object, an
111112
error will be returned. Additionally, if the range ends after the end of the
@@ -117,6 +118,7 @@ class GetOptions(TypedDict, total=False):
117118
- `{"suffix": int}`: Request the last `int` bytes. Note that here, `int` is _the
118119
size of the request_, not the byte offset. This is equivalent to `bytes=-{int}`
119120
as an HTTP header.
121+
120122
<https://datatracker.ietf.org/doc/html/rfc9110#name-range>
121123
"""
122124

0 commit comments

Comments
 (0)