Skip to content

Commit 024aa35

Browse files
committed
Typing
1 parent 4defe1f commit 024aa35

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

parcels/field.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import warnings
55
from ctypes import POINTER, Structure, c_float, c_int, pointer
66
from pathlib import Path
7-
from typing import TYPE_CHECKING, Type
7+
from typing import TYPE_CHECKING, Iterable, Type
88

99
import dask.array as da
1010
import numpy as np
@@ -283,7 +283,7 @@ def __init__(
283283
self.dataFiles = np.append(self.dataFiles, self.dataFiles[0])
284284
self._field_fb_class = kwargs.pop("FieldFileBuffer", None)
285285
self.netcdf_engine = kwargs.pop("netcdf_engine", "netcdf4")
286-
self.loaded_time_indices = []
286+
self.loaded_time_indices: Iterable[int] = [] # type: ignore
287287
self.creation_log = kwargs.pop("creation_log", "")
288288
self.chunksize = kwargs.pop("chunksize", None)
289289
self.netcdf_chunkdims_name_map = kwargs.pop("chunkdims_name_map", None)

0 commit comments

Comments
 (0)