From ab066bcf705314b35b4fe870d6873fc3d440cf23 Mon Sep 17 00:00:00 2001 From: Chuck Daniels Date: Sat, 5 Oct 2024 12:38:18 -0400 Subject: [PATCH] Refine argument type --- earthaccess/store.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/earthaccess/store.py b/earthaccess/store.py index 0a480575..fd399d44 100644 --- a/earthaccess/store.py +++ b/earthaccess/store.py @@ -65,7 +65,7 @@ def _open_files( fs: fsspec.AbstractFileSystem, threads: int = 8, ) -> List[fsspec.spec.AbstractBufferedFile]: - def multi_thread_open(data: tuple) -> EarthAccessFile: + def multi_thread_open(data: tuple[str, Optional[DataGranule]]) -> EarthAccessFile: url, granule = data return EarthAccessFile(fs.open(url), granule) # type: ignore