Skip to content

Commit a22dc0c

Browse files
drvinceknightmarcharper
authored andcommitted
Remove ArrayLike.
Note we can also remove it from the docs.
1 parent 8a1b5d2 commit a22dc0c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

axelrod/fingerprint.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
)
1616
from axelrod.strategy_transformers import DualTransformer, JossAnnTransformer
1717
from mpl_toolkits.axes_grid1 import make_axes_locatable
18-
from numpy.typing import ArrayLike
1918

2019
Point = namedtuple("Point", "x y")
2120

@@ -189,7 +188,7 @@ def _generate_data(interactions: dict, points: list, edges: list) -> dict:
189188
return point_scores
190189

191190

192-
def _reshape_data(data: dict, points: list, size: int) -> ArrayLike:
191+
def _reshape_data(data: dict, points: list, size: int) -> np.ndarray:
193192
"""Shape the data so that it can be plotted easily.
194193
195194
Parameters
@@ -442,7 +441,7 @@ def fingerprint(
442441
filename: str = None,
443442
progress_bar: bool = True,
444443
seed: int = None,
445-
) -> ArrayLike:
444+
) -> np.ndarray:
446445
"""Creates a spatial tournament to run the necessary matches to obtain
447446
fingerprint data.
448447

0 commit comments

Comments
 (0)