From 15b01ab106d030c34496e93837cc85f94b33c646 Mon Sep 17 00:00:00 2001 From: wpbonelli Date: Thu, 25 Jan 2024 16:33:21 -0500 Subject: [PATCH] refactor(curvilinear): support python 3.8 --- scripts/ex-gwf-curvilinear-90.py | 7 ++++--- scripts/ex-gwf-curvilinear.py | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/scripts/ex-gwf-curvilinear-90.py b/scripts/ex-gwf-curvilinear-90.py index d525a337..dfa7163a 100644 --- a/scripts/ex-gwf-curvilinear-90.py +++ b/scripts/ex-gwf-curvilinear-90.py @@ -26,6 +26,7 @@ import pathlib as pl from itertools import cycle from math import sqrt +from typing import List import flopy import matplotlib.pyplot as plt @@ -147,10 +148,10 @@ class DisvPropertyContainer: nlay: int ncpl: int nvert: int - vertices: list[list] # [[iv, xv, yv], ...] - cell2d: list[list] # [[ic, xc, yc, ncvert, icvert], ...] + vertices: List[list] # [[iv, xv, yv], ...] + cell2d: List[list] # [[ic, xc, yc, ncvert, icvert], ...] top: np.ndarray - botm: list[np.ndarray] + botm: List[np.ndarray] origin_x: float origin_y: float rotation: float diff --git a/scripts/ex-gwf-curvilinear.py b/scripts/ex-gwf-curvilinear.py index 097c6c5f..7819acf3 100644 --- a/scripts/ex-gwf-curvilinear.py +++ b/scripts/ex-gwf-curvilinear.py @@ -25,6 +25,7 @@ import os import pathlib as pl from itertools import cycle +from typing import List import flopy import matplotlib.pyplot as plt @@ -146,10 +147,10 @@ class DisvPropertyContainer: nlay: int ncpl: int nvert: int - vertices: list[list] # [[iv, xv, yv], ...] - cell2d: list[list] # [[ic, xc, yc, ncvert, icvert], ...] + vertices: List[list] # [[iv, xv, yv], ...] + cell2d: List[list] # [[ic, xc, yc, ncvert, icvert], ...] top: np.ndarray - botm: list[np.ndarray] + botm: List[np.ndarray] origin_x: float origin_y: float rotation: float