Skip to content

Commit

Permalink
Fix a typo in check_env assertion (issue hill-a#999) (hill-a#1000)
Browse files Browse the repository at this point in the history
* Fix typo

* Update changelog.rst

* Update env_checker.py

* Update changelog.rst

* Update changelog.rst

Co-authored-by: Antonin RAFFIN <[email protected]>
  • Loading branch information
OGordon100 and araffin authored Sep 10, 2020
1 parent 3840ddf commit 3d115a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/misc/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Others:
Documentation:
^^^^^^^^^^^^^^
- Added stable-baselines-tf2 link on Projects page. (@sophiagu)

- Fixed a typo in ``stable_baselines.common.env_checker.check_env`` (@OGordon100)

Release 2.10.1 (2020-08-05)
---------------------------
Expand Down Expand Up @@ -745,4 +745,4 @@ Thanks to @bjmuld @iambenzo @iandanforth @r7vme @brendenpetersen @huvar @abhiskk
@Miffyli @dwiel @miguelrass @qxcv @jaberkow @eavelardev @ruifeng96150 @pedrohbtp @srivatsankrishnan @evilsocket
@MarvineGothic @jdossgollin @SyllogismRXS @rusu24edward @jbulow @Antymon @seheevic @justinkterry @edbeeching
@flodorner @KuKuXia @NeoExtended @PartiallyTyped @mmcenta @richardwu @tirafesi @caburu @johannes-dornheim @kvenkman @aakash94
@enderdead @hardmaru @jbarsce @ColinLeongUDRI @shwang @YangRui2015 @sophiagu
@enderdead @hardmaru @jbarsce @ColinLeongUDRI @shwang @YangRui2015 @sophiagu @OGordon100
4 changes: 2 additions & 2 deletions stable_baselines/common/env_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ def check_env(env: gym.Env, warn: bool = True, skip_render_check: bool = True) -
:param skip_render_check: (bool) Whether to skip the checks for the render method.
True by default (useful for the CI)
"""
assert isinstance(env, gym.Env), ("You environment must inherit from gym.Env class "
" cf https://github.com/openai/gym/blob/master/gym/core.py")
assert isinstance(env, gym.Env), ("Your environment must inherit from the gym.Env class "
"cf https://github.com/openai/gym/blob/master/gym/core.py")

# ============= Check the spaces (observation and action) ================
_check_spaces(env)
Expand Down

0 comments on commit 3d115a3

Please sign in to comment.