Skip to content

Commit

Permalink
Adding back type ignores
Browse files Browse the repository at this point in the history
This is cargo-cult.  I wonder if there's a different CI test that wanted these
and since this is now excluded at the top level.  I'm putting them back until
migration into main codebase.
  • Loading branch information
flamingbear committed Feb 5, 2024
1 parent 9f89256 commit ec91d63
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xarray/datatree_/datatree/io.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
from .datatree import DataTree
from xarray.datatree_.datatree import DataTree


def _get_nc_dataset_class(engine):
if engine == "netcdf4":
from netCDF4 import Dataset
from netCDF4 import Dataset # type: ignore
elif engine == "h5netcdf":
from h5netcdf.legacyapi import Dataset
from h5netcdf.legacyapi import Dataset # type: ignore
elif engine is None:
try:
from netCDF4 import Dataset
except ImportError:
from h5netcdf.legacyapi import Dataset
from h5netcdf.legacyapi import Dataset # type: ignore
else:
raise ValueError(f"unsupported engine: {engine}")
return Dataset
Expand Down

0 comments on commit ec91d63

Please sign in to comment.