Add assert description. (#894)
**The assert was missing a description, I fixed it.** Please note: there is an error in the documentations, but it does not seem to be related to my changes.
This commit is contained in:
parent
cb8551f315
commit
cd218dc12d
2
tianshou/env/venvs.py
vendored
2
tianshou/env/venvs.py
vendored
@ -280,7 +280,7 @@ class BaseVectorEnv(object):
|
||||
assert (
|
||||
isinstance(ret_list[0], (tuple, list)) and len(ret_list[0]) == 2
|
||||
and isinstance(ret_list[0][1], dict)
|
||||
)
|
||||
), "The environment does not adhere to the Gymnasium's API."
|
||||
|
||||
obs_list = [r[0] for r in ret_list]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user