We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e95698a commit 0c11467Copy full SHA for 0c11467
pyproject.toml
@@ -107,7 +107,7 @@ filterwarnings = [
107
108
[tool.mypy]
109
files = ["."]
110
-python_version = 3.8
+python_version = 3.9
111
warn_unused_configs = true
112
show_error_codes = true
113
disallow_subclassing_any = true
tcod/path.py
@@ -330,7 +330,7 @@ def _export(array: NDArray[Any]) -> Any:
330
return ffi.new("struct NArray*", _export_dict(array))
331
332
333
-def _compile_cost_edges(edge_map: Any) -> tuple[Any, int]:
+def _compile_cost_edges(edge_map: ArrayLike) -> tuple[NDArray[np.intc], int]:
334
"""Return an edge_cost array using an integer map."""
335
edge_map = np.array(edge_map, copy=True)
336
if edge_map.ndim != 2:
0 commit comments