Skip to content

Commit 44bc97d

Browse files
committed
Remove imports associated to yaml and dataclasses
1 parent e9bb9ce commit 44bc97d

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

axelrod/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
from axelrod.plot import Plot
1919
from axelrod.game import DefaultGame, Game
2020
from axelrod.history import History, LimitedHistory
21-
from axelrod.data_classes import PlayerConfig
22-
from axelrod.yaml import log_kwargs, load_matches
2321
from axelrod.player import Player
2422
from axelrod.classifier import Classifiers
2523
from axelrod.evolvable_player import EvolvablePlayer

axelrod/strategy_transformers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
See the various Meta strategies for another type of transformation.
66
"""
77

8-
import inspect
98
from importlib import import_module
109
from typing import Any
1110

@@ -24,6 +23,8 @@
2423

2524

2625
def makes_use_of_reclassifier(original_classifier, player_class, wrapper):
26+
"""Reclassifier for post-transformation determination of whether
27+
strategy makes_use_of anything differently."""
2728
classifier_makes_use_of = makes_use_of(player_class)
2829
classifier_makes_use_of.update(makes_use_of_variant(wrapper))
2930
try:
@@ -103,6 +104,7 @@ def __call__(self, PlayerClass):
103104
reclassifiers = PlayerClass._reclassifiers.copy()
104105
if reclassifier is not None:
105106
reclassifiers.append((makes_use_of_reclassifier, (PlayerClass, strategy_wrapper), {}))
107+
# This one is second on the assumption that the wrapper reclassifier knows best.
106108
reclassifiers.append((reclassifier, args, kwargs))
107109

108110
# First handle the case where the strategy method is static.

axelrod/tests/strategies/test_player.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22
import pickle
33
import types
44
import unittest
5-
import warnings
65

76
import axelrod as axl
87
import numpy as np
98
from axelrod.tests.property import strategy_lists
10-
from axelrod.yaml import log_kwargs
119

1210
from hypothesis import given, settings
1311
from hypothesis.strategies import integers, sampled_from

0 commit comments

Comments
 (0)