Skip to content

Commit

Permalink
fix: support Python 3.8 (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli authored Sep 11, 2023
1 parent 092edef commit 6899ae1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 4 additions & 3 deletions common/DisvPropertyContainer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import copy
from itertools import cycle
from typing import List

import matplotlib.pyplot as plt
import numpy as np
Expand Down Expand Up @@ -103,10 +104,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
Expand Down
4 changes: 3 additions & 1 deletion etc/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ def pytest_generate_tests(metafunc):
for file_name in sorted(os.listdir(os.path.join("..", "scripts")))
if file_name.endswith(".py") and file_name.startswith("ex-")
}
metafunc.parametrize("build", scripts_dict.values(), ids=scripts_dict.keys())
metafunc.parametrize(
"build", scripts_dict.values(), ids=scripts_dict.keys()
)

0 comments on commit 6899ae1

Please sign in to comment.