Skip to content

Commit 224d0e8

Browse files
author
wpbonelli
committed
fix type hints
1 parent a0206b5 commit 224d0e8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

flopy4/mf6/gwf/dis.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from typing import Optional
12
import numpy as np
23
from attrs import Converter
34
from flopy.discretization.structuredgrid import StructuredGrid
@@ -65,7 +66,7 @@ class Dis(Package):
6566
dims=("nlay", "nrow", "ncol"),
6667
converter=Converter(dict_to_array, takes_self=True, takes_field=True),
6768
)
68-
idomain: NDArray[np.int32] = array(
69+
idomain: Optional[NDArray[np.int32]] = array(
6970
block="griddata",
7071
default=1,
7172
dims=("nlay", "nrow", "ncol"),

flopy4/mf6/gwf/ic.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from typing import Optional
12
import numpy as np
23
from attrs import Converter
34
from numpy.typing import NDArray
@@ -10,7 +11,7 @@
1011

1112
@xattree
1213
class Ic(Package):
13-
strt: NDArray[np.float64] = array(
14+
strt: Optional[NDArray[np.float64]] = array(
1415
block="packagedata",
1516
dims=("nnodes",),
1617
default=1.0,

0 commit comments

Comments
 (0)