Skip to content

Commit 07f8084

Browse files
committed
Ignore some type hints
1 parent b412eb9 commit 07f8084

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

mikeio/dataset/_dataarray.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,7 @@ def interp(
964964

965965
if interpolant is None:
966966
interpolant = self.geometry.get_2d_interpolant(
967-
coords,
967+
coords, # type: ignore
968968
n_nearest=n_nearest,
969969
**kwargs, # type: ignore
970970
)

mikeio/dataset/_dataset.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,11 @@ def __init__(
105105
geometry=geometry,
106106
zn=zn,
107107
dims=dims,
108-
dt=dt, # type: ignore
108+
dt=dt,
109109
)
110110
self._data_vars: MutableMapping[str, DataArray] = self._init_from_DataArrays(
111-
data, validate=validate
111+
data, # type: ignore
112+
validate=validate,
112113
) # type: ignore
113114
self.plot = _DatasetPlotter(self)
114115

@@ -132,12 +133,12 @@ def _is_DataArrays(data: Any) -> bool:
132133

133134
@staticmethod
134135
def _create_dataarrays(
135-
data: Sequence[NDArray[np.floating]] | NDArray[np.floating],
136+
data: Any,
136137
time: pd.DatetimeIndex,
137-
items: Sequence[ItemInfo],
138+
items: Any,
138139
geometry: Any,
139-
zn: NDArray[np.floating],
140-
dims: Tuple[str, ...],
140+
zn: Any,
141+
dims: Any,
141142
dt: float,
142143
) -> Mapping[str, DataArray]:
143144
if not isinstance(data, Iterable):
@@ -502,7 +503,7 @@ def create_empty_data(
502503
n_timesteps: int = 1,
503504
n_elements: int | None = None,
504505
shape: Tuple[int, ...] | None = None,
505-
): # type: ignore
506+
) -> list:
506507
data = []
507508
if shape is None:
508509
if n_elements is None:
@@ -961,7 +962,7 @@ def interp(
961962
self.geometry, GeometryFM2D
962963
): # TODO remove this when all geometries implements the same method
963964
interpolant = self.geometry.get_2d_interpolant(
964-
xy,
965+
xy, # type: ignore
965966
n_nearest=n_nearest,
966967
**kwargs, # type: ignore
967968
)

0 commit comments

Comments
 (0)