Skip to content

Commit

Permalink
Reuse obstore.store type hinting (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron authored Feb 28, 2025
1 parent 483327b commit 937ec7b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "python/obstore"]
path = python/_obstore
url = https://github.com/developmentseed/obstore
1 change: 1 addition & 0 deletions python/_obstore
Submodule _obstore added at aaa8d6
5 changes: 5 additions & 0 deletions python/python/async_tiff/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
from typing import TYPE_CHECKING

from ._async_tiff import *
from ._async_tiff import ___version

if TYPE_CHECKING:
from . import store

__version__: str = ___version()
5 changes: 2 additions & 3 deletions python/python/async_tiff/_tiff.pyi
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
from typing import Any

from ._ifd import ImageFileDirectory
from .store import ObjectStore

class TIFF:
@classmethod
async def open(
cls, path: str, *, store: Any, prefetch: int | None = 16384
cls, path: str, *, store: ObjectStore, prefetch: int | None = 16384
) -> TIFF: ...
@property
def ifds(self) -> list[ImageFileDirectory]: ...
1 change: 1 addition & 0 deletions python/python/async_tiff/store

0 comments on commit 937ec7b

Please sign in to comment.