Skip to content

Commit c0c9baa

Browse files
authored
Replace np.bool with bool (makes np > 1.20 usable) (#712)
1 parent 47b9f2d commit c0c9baa

File tree

1 file changed

+1
-1
lines changed
  • minerl/herobraine/hero/handlers/agent/observations

1 file changed

+1
-1
lines changed

minerl/herobraine/hero/handlers/agent/observations/lifestats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class _IsAliveObservation(LifeStatsObservation):
5959
def __init__(self):
6060
keys = ['is_alive']
6161
super().__init__(hero_keys=keys, univ_keys=keys,
62-
space=spaces.Box(low=False, high=True, shape=(), dtype=np.bool),
62+
space=spaces.Box(low=False, high=True, shape=(), dtype=bool),
6363
default_if_missing=True)
6464

6565

0 commit comments

Comments
 (0)