Skip to content

Commit 3c6e45f

Browse files
authored
refactor(curvilinear): support python 3.8 (#146)
1 parent dcbbbd5 commit 3c6e45f

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

scripts/ex-gwf-curvilinear-90.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import pathlib as pl
2727
from itertools import cycle
2828
from math import sqrt
29+
from typing import List
2930

3031
import flopy
3132
import matplotlib.pyplot as plt
@@ -147,10 +148,10 @@ class DisvPropertyContainer:
147148
nlay: int
148149
ncpl: int
149150
nvert: int
150-
vertices: list[list] # [[iv, xv, yv], ...]
151-
cell2d: list[list] # [[ic, xc, yc, ncvert, icvert], ...]
151+
vertices: List[list] # [[iv, xv, yv], ...]
152+
cell2d: List[list] # [[ic, xc, yc, ncvert, icvert], ...]
152153
top: np.ndarray
153-
botm: list[np.ndarray]
154+
botm: List[np.ndarray]
154155
origin_x: float
155156
origin_y: float
156157
rotation: float

scripts/ex-gwf-curvilinear.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import os
2626
import pathlib as pl
2727
from itertools import cycle
28+
from typing import List
2829

2930
import flopy
3031
import matplotlib.pyplot as plt
@@ -146,10 +147,10 @@ class DisvPropertyContainer:
146147
nlay: int
147148
ncpl: int
148149
nvert: int
149-
vertices: list[list] # [[iv, xv, yv], ...]
150-
cell2d: list[list] # [[ic, xc, yc, ncvert, icvert], ...]
150+
vertices: List[list] # [[iv, xv, yv], ...]
151+
cell2d: List[list] # [[ic, xc, yc, ncvert, icvert], ...]
151152
top: np.ndarray
152-
botm: list[np.ndarray]
153+
botm: List[np.ndarray]
153154
origin_x: float
154155
origin_y: float
155156
rotation: float

0 commit comments

Comments
 (0)