Skip to content

Commit 0c11467

Browse files
committed
Drop Python 3.8 from Mypy tests.
Newer versions of NumPy don't support type-hints for this version.
1 parent e95698a commit 0c11467

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ filterwarnings = [
107107

108108
[tool.mypy]
109109
files = ["."]
110-
python_version = 3.8
110+
python_version = 3.9
111111
warn_unused_configs = true
112112
show_error_codes = true
113113
disallow_subclassing_any = true

tcod/path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ def _export(array: NDArray[Any]) -> Any:
330330
return ffi.new("struct NArray*", _export_dict(array))
331331

332332

333-
def _compile_cost_edges(edge_map: Any) -> tuple[Any, int]:
333+
def _compile_cost_edges(edge_map: ArrayLike) -> tuple[NDArray[np.intc], int]:
334334
"""Return an edge_cost array using an integer map."""
335335
edge_map = np.array(edge_map, copy=True)
336336
if edge_map.ndim != 2:

0 commit comments

Comments
 (0)