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
Copy file name to clipboardExpand all lines: obstore/python/obstore/_buffered.pyi
+1-12Lines changed: 1 addition & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,6 @@ from contextlib import AbstractAsyncContextManager, AbstractContextManager
3
3
4
4
from ._attributesimportAttributes
5
5
from ._bytesimportBytes
6
-
from ._listimportObjectMeta
7
6
from ._storeimportObjectStore
8
7
9
8
ifsys.version_info>= (3, 11):
@@ -33,9 +32,7 @@ def open_reader(
33
32
buffer_size: The minimum number of bytes to read in a single request. Up to `buffer_size` bytes will be buffered in memory.
34
33
size: Optional byte size of the object. When provided, skips the HEAD request used to fetch the file size. Useful for callers that already know the size from external metadata.
35
34
36
-
The caller is responsible for accuracy: a value larger than the actual file surfaces as a read-time range error, a value smaller causes silent truncation.
37
-
38
-
When `size` is provided, the resulting reader's `meta` attribute omits `last_modified` (since it was not fetched). Callers that need that field should call `open_reader` without `size`. Defaults to `None`.
35
+
The caller is responsible for accuracy: a value larger than the actual file surfaces as a read-time range error, a value smaller causes silent truncation. Defaults to `None`.
39
36
40
37
Returns:
41
38
ReadableFile
@@ -94,10 +91,6 @@ class ReadableFile:
94
91
This is currently a no-op.
95
92
"""
96
93
97
-
@property
98
-
defmeta(self) ->ObjectMeta:
99
-
"""Access the metadata of the underlying file."""
100
-
101
94
defread(self, size: int|None=None, /) ->Bytes:
102
95
"""Read up to `size` bytes from the object and return them.
0 commit comments