-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reuse obstore.store type hinting (#38)
- Loading branch information
1 parent
483327b
commit 937ec7b
Showing
5 changed files
with
12 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../_obstore/obstore/python/obstore/store |