Skip to content

Commit 9397754

Browse files
committed
minor fixes , changed tuple so that its compatible with early versions as well
1 parent f3594e6 commit 9397754

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

machine_learning/q_learning.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@
1010

1111
import random
1212
from collections import defaultdict
13+
from typing import Tuple
1314

1415
# Type alias for state
15-
type State = tuple[int, int]
16+
type State = Tuple[int, int]
1617

1718
# Hyperparameters for Q-Learning
1819
LEARNING_RATE = 0.1

0 commit comments

Comments
 (0)