Skip to content

Commit

Permalink
Type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbourbeau committed Nov 20, 2024
1 parent fe027d2 commit eea68ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions xarray/backends/h5netcdf_.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def open(
decode_vlen_strings=True,
driver=None,
driver_kwds=None,
storage_options=None,
storage_options: dict[str, Any] | None = None,
):
import h5netcdf

Expand Down Expand Up @@ -433,7 +433,7 @@ def open_dataset(
decode_vlen_strings=True,
driver=None,
driver_kwds=None,
storage_options=None,
storage_options: dict[str, Any] | None = None,
) -> Dataset:
filename_or_obj = _normalize_path(filename_or_obj)
store = H5NetCDFStore.open(
Expand All @@ -446,6 +446,7 @@ def open_dataset(
decode_vlen_strings=decode_vlen_strings,
driver=driver,
driver_kwds=driver_kwds,
storage_options=storage_options,
)

store_entrypoint = StoreBackendEntrypoint()
Expand All @@ -459,7 +460,6 @@ def open_dataset(
drop_variables=drop_variables,
use_cftime=use_cftime,
decode_timedelta=decode_timedelta,
storage_options=None,
)
return ds

Expand Down
1 change: 0 additions & 1 deletion xarray/backends/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ def open_dataset(
drop_variables: str | Iterable[str] | None = None,
use_cftime=None,
decode_timedelta=None,
storage_options=None,
) -> Dataset:
assert isinstance(filename_or_obj, AbstractDataStore)

Expand Down

0 comments on commit eea68ea

Please sign in to comment.