From fb7880623d4a8bd79d2ac60e25284da10ab26e9d Mon Sep 17 00:00:00 2001 From: Matt Fisher Date: Tue, 1 Oct 2024 11:43:44 -0600 Subject: [PATCH] Fix misspelled class name --- earthaccess/store.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/earthaccess/store.py b/earthaccess/store.py index 84d61c4b..31f09a44 100644 --- a/earthaccess/store.py +++ b/earthaccess/store.py @@ -26,7 +26,7 @@ logger = logging.getLogger(__name__) -class EarthAccessFile(fsspec.spec.AbstractBaseFile): +class EarthAccessFile(fsspec.spec.AbstractBufferedFile): """Handle for a file-like object pointing to an on-prem or Earthdata Cloud granule.""" def __init__( @@ -64,7 +64,7 @@ def _open_files( url_mapping: Mapping[str, Union[DataGranule, None]], fs: fsspec.AbstractFileSystem, threads: Optional[int] = 8, -) -> List[fsspec.spec.AbstractBaseFile]: +) -> List[fsspec.spec.AbstractBufferedFile]: def multi_thread_open(data: tuple) -> EarthAccessFile: urls, granule = data return EarthAccessFile(fs.open(urls), granule) @@ -336,7 +336,7 @@ def open( self, granules: Union[List[str], List[DataGranule]], provider: Optional[str] = None, - ) -> List[fsspec.spec.AbstractBaseFile]: + ) -> List[fsspec.spec.AbstractBufferedFile]: """Returns a list of file-like objects that can be used to access files hosted on S3 or HTTPS by third party libraries like xarray.