@@ -222,19 +222,19 @@ def env_step_passive_checker(env, action):
222
222
)
223
223
obs , reward , done , info = result
224
224
225
- if not isinstance (done , (bool , np .bool8 )):
225
+ if not isinstance (done , (bool , np .bool )):
226
226
logger .warn (
227
227
f"Expects `done` signal to be a boolean, actual type: { type (done )} "
228
228
)
229
229
elif len (result ) == 5 :
230
230
obs , reward , terminated , truncated , info = result
231
231
232
- # np.bool is actual python bool not np boolean type, therefore bool_ or bool8
233
- if not isinstance (terminated , (bool , np .bool8 )):
232
+ # np.bool is actual python bool not np boolean type, therefore bool_ or bool
233
+ if not isinstance (terminated , (bool , np .bool )):
234
234
logger .warn (
235
235
f"Expects `terminated` signal to be a boolean, actual type: { type (terminated )} "
236
236
)
237
- if not isinstance (truncated , (bool , np .bool8 )):
237
+ if not isinstance (truncated , (bool , np .bool )):
238
238
logger .warn (
239
239
f"Expects `truncated` signal to be a boolean, actual type: { type (truncated )} "
240
240
)
0 commit comments