Skip to content

Commit 0f34d20

Browse files
committed
Add missing type annotations for qlearner.
1 parent 9f54380 commit 0f34d20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

axelrod/strategies/qlearner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ def __init__(self) -> None:
4848
# for any subclasses that do not override methods using random calls.
4949
self.classifier['stochastic'] = True
5050

51-
self.prev_action = None
52-
self.original_prev_action = None
51+
self.prev_action = None # type: Action
52+
self.original_prev_action = None # type: Action
5353
self.history = [] # type: List[Action]
5454
self.score = 0
5555
self.Qs = OrderedDict({'': OrderedDict(zip([C, D], [0, 0]))})

0 commit comments

Comments
 (0)