Skip to content

Commit d1680cf

Browse files
author
wpbonelli
committed
mypy
1 parent 6ecd21b commit d1680cf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

flopy4/mf6/codec/reader/transformer.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ class ArrayTransformer(Transformer):
6262
MF6 input format specification.
6363
"""
6464

65-
def start(self, items: list[Any]) -> xr.DataArray | Path:
65+
def start(self, items: list[Any]) -> dict:
6666
return items[0]
6767

68-
def readarray(self, items: list[Any]) -> xr.DataArray | Path:
68+
def readarray(self, items: list[Any]) -> dict:
6969
infos = items[0]
7070
if isinstance(infos, list):
7171
data = xr.concat([info["data"] for info in infos if "data" in info], dim="layer")
@@ -77,14 +77,14 @@ def readarray(self, items: list[Any]) -> xr.DataArray | Path:
7777
}
7878
return infos
7979

80-
def single_array(self, items: list[Any]) -> xr.DataArray | Path:
80+
def single_array(self, items: list[Any]) -> dict:
8181
netcdf = items[0]
8282
info = items[-1]
8383
if netcdf:
8484
info["netcdf"] = netcdf
8585
return ArrayTransformer.try_create_dataarray(info)
8686

87-
def layered_array(self, items: list[Any]) -> xr.DataArray | list[Path]:
87+
def layered_array(self, items: list[Any]) -> list[dict]:
8888
netcdf = items[0]
8989
infos = []
9090
for info in items[2:]:
@@ -95,7 +95,7 @@ def layered_array(self, items: list[Any]) -> xr.DataArray | list[Path]:
9595
infos.append(ArrayTransformer.try_create_dataarray(info))
9696
return infos
9797

98-
def array(self, items: list[Any]) -> dict[str, Any] | Path:
98+
def array(self, items: list[Any]) -> dict[str, Any]:
9999
control = items[0]
100100
data = items[1] if len(items) > 1 else None
101101
if (value := control.get("value", None)) is not None:
@@ -115,7 +115,7 @@ def internal(self, items: list[Any]) -> dict[str, Any]:
115115
result.update(item)
116116
return result
117117

118-
def external(self, items: list[Any]) -> Path:
118+
def external(self, items: list[Any]) -> dict[str, Any]:
119119
return {"type": "external", "value": items[0]}
120120

121121
def factor(self, items: list[Any]) -> dict[str, float]:

0 commit comments

Comments
 (0)