Skip to content

Commit 83cb110

Browse files
authored
Merge pull request #11 from HumanCompatibleAI/typing_patch
Fix error from subscripting 'type' object
2 parents 161dfa5 + a74b876 commit 83cb110

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/reward_preprocessing/vis/reward_vis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Port of lucid.scratch.rl_util to PyTorch. APL2.0 licensed."""
22
from functools import reduce
33
import logging
4-
from typing import Optional
4+
from typing import List, Optional
55

66
import lucent.optvis.param as param
77
import lucent.optvis.render as render
@@ -15,7 +15,7 @@
1515
import reward_preprocessing.vis.objectives as objectives_rfi
1616

1717

18-
def argmax_nd(x: np.ndarray, axes: list[int], *, max_rep=np.inf, max_rep_strict=None):
18+
def argmax_nd(x: np.ndarray, axes: List[int], *, max_rep=np.inf, max_rep_strict=None):
1919
"""Return the indices of the maximum value along the given axes.
2020
2121
Args:

0 commit comments

Comments
 (0)