Skip to content

Commit 74c5596

Browse files
committed
Allow obstore type check
1 parent 3776850 commit 74c5596

File tree

3 files changed

+93
-1
lines changed

3 files changed

+93
-1
lines changed

python/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ dev-dependencies = [
3131
"mkdocstrings-python>=1.13.0",
3232
"mkdocstrings>=0.27.0",
3333
"numpy>=1",
34+
"obstore",
3435
"pip>=24.2",
3536
"pytest-asyncio>=0.24.0",
3637
"pytest>=8.3.3",

python/python/async_tiff/_tiff.pyi

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1+
import obstore
12
from ._tile import Tile
23
from ._ifd import ImageFileDirectory
34
from .store import ObjectStore
45

56
class TIFF:
67
@classmethod
78
async def open(
8-
cls, path: str, *, store: ObjectStore, prefetch: int | None = 16384
9+
cls,
10+
path: str,
11+
*,
12+
store: obstore.store.ObjectStore | ObjectStore,
13+
prefetch: int | None = 16384,
914
) -> TIFF: ...
1015
@property
1116
def ifds(self) -> list[ImageFileDirectory]: ...

0 commit comments

Comments
 (0)