|
14 | 14 | import warnings
|
15 | 15 | import yaml
|
16 | 16 |
|
| 17 | +from axelrod.makes_use_of import makes_use_of |
17 | 18 | from axelrod.player import Player
|
18 | 19 |
|
19 | 20 | ALL_CLASSIFIERS_PATH = "data/all_classifiers.yml"
|
@@ -59,12 +60,18 @@ def classify_player(self, player: Type[Player]) -> T:
|
59 | 60 |
|
60 | 61 |
|
61 | 62 | stochastic = Classifier[bool]("stochastic", lambda _: False)
|
62 |
| -memory_depth = Classifier[Union[float, int]]("memory_depth", lambda _: float("inf")) |
63 |
| -makes_use_of = Classifier[Optional[Set[Text]]]("makes_use_of", lambda _: None) |
| 63 | +memory_depth = Classifier[Union[float, int]]( |
| 64 | + "memory_depth", lambda _: float("inf") |
| 65 | +) |
| 66 | +makes_use_of = Classifier[Optional[Set[Text]]]("makes_use_of", makes_use_of) |
64 | 67 | long_run_time = Classifier[bool]("long_run_time", lambda _: False)
|
65 | 68 | inspects_source = Classifier[Optional[bool]]("inspects_source", lambda _: None)
|
66 |
| -manipulates_source = Classifier[Optional[bool]]("manipulates_source", lambda _: None) |
67 |
| -manipulates_state = Classifier[Optional[bool]]("manipulates_state", lambda _: None) |
| 69 | +manipulates_source = Classifier[Optional[bool]]( |
| 70 | + "manipulates_source", lambda _: None |
| 71 | +) |
| 72 | +manipulates_state = Classifier[Optional[bool]]( |
| 73 | + "manipulates_state", lambda _: None |
| 74 | +) |
68 | 75 |
|
69 | 76 | # Should list all known classifiers.
|
70 | 77 | all_classifiers = [
|
|
0 commit comments