Skip to content

Commit 448317b

Browse files
committed
mypy...
1 parent f471057 commit 448317b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

xarray/core/dataarray.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,8 @@ def __init__(
459459

460460
# These fully describe a DataArray
461461
self._variable = variable
462-
self._coords = coords
462+
# Variables can have undefined data type according to MyPy due to the fastpath
463+
self._coords: Sequence[Sequence | pd.Index | DataArray] | Mapping = coords # type: ignore[assignment]
463464
self._name = name
464465
self._indexes = indexes # type: ignore[assignment]
465466

0 commit comments

Comments
 (0)