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:
Błażej Osiński 2023-08-10 00:12:42 +02:00 committed by GitHub
parent cb8551f315
commit cd218dc12d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]